From de928b294e61c4cce1978f49f05f5220267dc261 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Thu, 7 Oct 2010 23:07:02 +0000 Subject: [PATCH] Add wizard for creating export definitions --- ...ss.addressbook_export_contacts_csv.inc.php | 2 +- ...essbook_wizard_export_contacts_csv.inc.php | 24 +++++++++++++++++++ 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 addressbook/inc/class.addressbook_wizard_export_contacts_csv.inc.php diff --git a/addressbook/inc/class.addressbook_export_contacts_csv.inc.php b/addressbook/inc/class.addressbook_export_contacts_csv.inc.php index 54429ef499..281be841d1 100644 --- a/addressbook/inc/class.addressbook_export_contacts_csv.inc.php +++ b/addressbook/inc/class.addressbook_export_contacts_csv.inc.php @@ -66,7 +66,7 @@ class addressbook_export_contacts_csv implements importexport_iface_export_plugi * @return string descriprion */ public static function get_description() { - return lang("Exports contacts from your Addressbook into a CSV File. CSV means 'Comma Seperated Values'. However in the options Tab you can also choose other seperators."); + return lang("Exports contacts from your Addressbook into a CSV File."); } /** diff --git a/addressbook/inc/class.addressbook_wizard_export_contacts_csv.inc.php b/addressbook/inc/class.addressbook_wizard_export_contacts_csv.inc.php new file mode 100644 index 0000000000..d43e1da789 --- /dev/null +++ b/addressbook/inc/class.addressbook_wizard_export_contacts_csv.inc.php @@ -0,0 +1,24 @@ +export_fields = $bocontacts->contact_fields; + foreach($bocontacts->customfields as $name => $data) { + $this->export_fields['#'.$name] = $data['label']; + } + unset($this->export_fields['jpegphoto']); // can't cvs export that + } +}