Changeset View
Changeset View
Standalone View
Standalone View
plugins/kolab_addressbook/kolab_addressbook.php
Show First 20 Lines • Show All 465 Lines • ▼ Show 20 Lines | class kolab_addressbook extends rcube_plugin | ||||
* | * | ||||
* @param array $p Hash array with hook parameters | * @param array $p Hash array with hook parameters | ||||
* | * | ||||
* @return array Hash array with modified hook parameters | * @return array Hash array with modified hook parameters | ||||
*/ | */ | ||||
public function contact_form($p) | public function contact_form($p) | ||||
{ | { | ||||
// none of our business | // none of our business | ||||
if (!is_object($GLOBALS['CONTACTS']) || !is_a($GLOBALS['CONTACTS'], 'kolab_contacts')) { | if (!is_object($GLOBALS['CONTACTS'] ?? null) || !is_a($GLOBALS['CONTACTS'], 'kolab_contacts')) { | ||||
return $p; | return $p; | ||||
} | } | ||||
// extend the list of contact fields to be displayed in the 'personal' section | // extend the list of contact fields to be displayed in the 'personal' section | ||||
if (is_array($p['form']['personal'])) { | if (is_array($p['form']['personal'])) { | ||||
$p['form']['personal']['content']['profession'] = array('size' => 40); | $p['form']['personal']['content']['profession'] = array('size' => 40); | ||||
$p['form']['personal']['content']['children'] = array('size' => 40); | $p['form']['personal']['content']['children'] = array('size' => 40); | ||||
$p['form']['personal']['content']['freebusyurl'] = array('size' => 40); | $p['form']['personal']['content']['freebusyurl'] = array('size' => 40); | ||||
▲ Show 20 Lines • Show All 660 Lines • Show Last 20 Lines |