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 22:41:49 +00:00
parent ac14a5a1fd
commit e532ee0944
2 changed files with 4 additions and 0 deletions

View File

@ -31,6 +31,7 @@ class calendar_hooks
),
'view_id' => 'cal_id',
'view_popup' => '750x400',
'view_list' => 'calendar.calendar_uilist.listview',
'add' => array(
'menuaction' => 'calendar.calendar_uiforms.edit',
),

View File

@ -139,6 +139,9 @@ class calendar_uilist extends calendar_ui
'header_left' => 'calendar.list.dates',
);
}
if ($_GET['search']) {
$content['nm']['search'] = $_GET['search'];
}
if (isset($_REQUEST['keywords'])) // new search => set filters so every match is shown
{
$this->adjust_for_search($_REQUEST['keywords'],$content['nm']);