Implement new link hook view_list, to be able to be taken to a list of entries

This commit is contained in:
Nathan Gray 2009-12-08 23:10:06 +00:00
parent 00a75858ea
commit 4139c23ef7
2 changed files with 4 additions and 0 deletions

View File

@ -104,6 +104,7 @@ class resources_hooks
),
'view_id' => 'res_id',
'view_popup' => '850x600',
'view_list' => 'resources.ui_resources.index',
'add' => array(
'menuaction' => 'resources.ui_resources.edit',
),

View File

@ -118,6 +118,9 @@ class ui_resources
$content['nm'] = $nm_session_data;
}
$content['nm']['options-filter']= array(''=>lang('all categories'))+(array)$this->bo->acl->get_cats(EGW_ACL_READ);
if($_GET['search']) {
$content['nm']['search'] = $_GET['search'];
}
// check if user is permitted to add resources
if(!$this->bo->acl->get_cats(EGW_ACL_ADD))