mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-18 11:58:24 +01:00
Implement new link hook view_list, to be able to be taken to a list of entries
This commit is contained in:
parent
00a75858ea
commit
4139c23ef7
@ -104,6 +104,7 @@ class resources_hooks
|
|||||||
),
|
),
|
||||||
'view_id' => 'res_id',
|
'view_id' => 'res_id',
|
||||||
'view_popup' => '850x600',
|
'view_popup' => '850x600',
|
||||||
|
'view_list' => 'resources.ui_resources.index',
|
||||||
'add' => array(
|
'add' => array(
|
||||||
'menuaction' => 'resources.ui_resources.edit',
|
'menuaction' => 'resources.ui_resources.edit',
|
||||||
),
|
),
|
||||||
|
@ -118,6 +118,9 @@ class ui_resources
|
|||||||
$content['nm'] = $nm_session_data;
|
$content['nm'] = $nm_session_data;
|
||||||
}
|
}
|
||||||
$content['nm']['options-filter']= array(''=>lang('all categories'))+(array)$this->bo->acl->get_cats(EGW_ACL_READ);
|
$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
|
// check if user is permitted to add resources
|
||||||
if(!$this->bo->acl->get_cats(EGW_ACL_ADD))
|
if(!$this->bo->acl->get_cats(EGW_ACL_ADD))
|
||||||
|
Loading…
Reference in New Issue
Block a user