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 21:27:56 +00:00
parent 6df521de8d
commit 08b7ab173e
2 changed files with 6 additions and 0 deletions

View File

@ -312,6 +312,7 @@ class addressbook_hooks
'menuaction' => 'addressbook.addressbook_ui.view' 'menuaction' => 'addressbook.addressbook_ui.view'
), ),
'view_id' => 'contact_id', 'view_id' => 'contact_id',
'view_list' => 'addressbook.addressbook_ui.index',
'add' => array( 'add' => array(
'menuaction' => 'addressbook.addressbook_ui.edit' 'menuaction' => 'addressbook.addressbook_ui.edit'
), ),

View File

@ -208,6 +208,11 @@ class addressbook_ui extends addressbook_bo
$content['nm'] = array_merge($content['nm'],$state); $content['nm'] = array_merge($content['nm'],$state);
} }
} }
// Search parameter passed in
if ($_GET['search']) {
$content['nm']['search'] = $_GET['search'];
}
if (isset($typeselection)) $content['nm']['col_filter']['tid'] = $typeselection; if (isset($typeselection)) $content['nm']['col_filter']['tid'] = $typeselection;
if ($this->lists_available()) if ($this->lists_available())