use new hook facility to register for group acl

This commit is contained in:
Ralf Becker 2008-06-27 10:04:05 +00:00
parent ff7325276e
commit 0e58c00b98
2 changed files with 12 additions and 0 deletions

View File

@ -308,4 +308,15 @@ class addressbook_hooks
'info' => 'addressbook.addressbook_bo.calendar_info',// info method, returns array with id, type & name for a given id
);
}
/**
* Register addressbook for group-acl
*
* @param array $args hook-params (not used)
* @return boolean|string true=standard group acl link, of string with link
*/
static function group_acl($args)
{
return true;
}
}

View File

@ -40,6 +40,7 @@ $setup_info['addressbook']['hooks']['search_link'] = 'addressbook_hooks::search_
$setup_info['addressbook']['hooks']['calendar_resources'] = 'addressbook_hooks::calendar_resources';
$setup_info['addressbook']['hooks']['edit_user'] = 'addressbook_hooks::edit_user';
$setup_info['addressbook']['hooks'][] = 'config';
$setup_info['addressbook']['hooks']['group_acl'] = 'addressbook_hooks::group_acl';
/* Dependencies for this app to work */
$setup_info['addressbook']['depends'][] = array(