summaryrefslogtreecommitdiff
path: root/plugins/kolab_addressbook/kolab_addressbook.php
diff options
context:
space:
mode:
authorthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2011-01-02 17:14:19 +0000
committerthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2011-01-02 17:14:19 +0000
commit5b8313bc0ef1d2c2dc02639d18895b73826dc3b4 (patch)
tree5b1bbd7ffdeb880baef64e84f54050497742e2ed /plugins/kolab_addressbook/kolab_addressbook.php
parent62dffd20453983c657433ea1dbd6a27a2c927694 (diff)
Map some more fields supported by kolab.contact
git-svn-id: https://svn.roundcube.net/trunk@4383 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'plugins/kolab_addressbook/kolab_addressbook.php')
-rw-r--r--plugins/kolab_addressbook/kolab_addressbook.php19
1 files changed, 16 insertions, 3 deletions
diff --git a/plugins/kolab_addressbook/kolab_addressbook.php b/plugins/kolab_addressbook/kolab_addressbook.php
index edf8e1f45..68179c387 100644
--- a/plugins/kolab_addressbook/kolab_addressbook.php
+++ b/plugins/kolab_addressbook/kolab_addressbook.php
@@ -116,12 +116,16 @@ class kolab_addressbook extends rcube_plugin
*/
public function contact_form($p)
{
+ // none of our business
+ if (!is_a($GLOBALS['CONTACTS'], 'rcube_kolab_contacts'))
+ return $p;
+
// extend the list of contact fields to be displayed in the 'info' section
if (is_array($p['form']['info'])) {
$p['form']['info']['content']['initials'] = array('size' => 6);
- $p['form']['info']['content']['anniversary'] = array('size' => 12, 'render_func' => 'rcmail_format_date_col');
-
- // TODO: add more Kolab-specific fields
+ $p['form']['info']['content']['officelocation'] = array('size' => 40);
+ $p['form']['info']['content']['profession'] = array('size' => 40);
+ $p['form']['info']['content']['children'] = array('size' => 40);
// re-order fields according to the coltypes list
$block = array();
@@ -132,6 +136,15 @@ class kolab_addressbook extends rcube_plugin
}
$p['form']['info']['content'] = $block;
+
+ // define a separate section 'settings'
+ $p['form']['settings'] = array(
+ 'name' => rcube_label('kolab_addressbook.settings'),
+ 'content' => array(
+ 'pgppublickey' => array('size' => 40, 'visible' => true),
+ 'freebusyurl' => array('size' => 40, 'visible' => true),
+ )
+ );
}
return $p;