diff --git a/addressbook/inc/class.addressbook_import_vcard.inc.php b/addressbook/inc/class.addressbook_import_vcard.inc.php index 01cb282239..ea5ced4aed 100644 --- a/addressbook/inc/class.addressbook_import_vcard.inc.php +++ b/addressbook/inc/class.addressbook_import_vcard.inc.php @@ -76,9 +76,9 @@ class addressbook_import_vcard implements importexport_iface_import_plugin { protected $errors = array(); /** - * List of actions, and how many times that action was taken - */ - protected $results = array(); + * List of actions, and how many times that action was taken + */ + protected $results = array(); /** * imports entries according to given definition object. @@ -343,7 +343,17 @@ class addressbook_import_vcard implements importexport_iface_import_plugin { * ) */ public function get_options_etpl() { - // lets do it! + return array( + 'name' => 'addressbook.import_vcard', + 'content' => array( + 'file_type' => 'vcard,ical,vcf', + 'vcard_charset' => $GLOBALS['egw_info']['user']['preferences']['addressbook']['vcard_charset'] + ), + 'sel_options' => array( + 'charset' => Api\Translation::get_installed_charsets() + ), + 'preserv' => array() + ); } /** diff --git a/addressbook/templates/default/import_vcard.xet b/addressbook/templates/default/import_vcard.xet new file mode 100644 index 0000000000..a6e1ab5d65 --- /dev/null +++ b/addressbook/templates/default/import_vcard.xet @@ -0,0 +1,24 @@ + + + + + +