From 08b7ab173e0070921c7821ae9b781a5c1768a065 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Tue, 8 Dec 2009 21:27:56 +0000 Subject: [PATCH] Implement new link hook view_list, to be able to be taken to a list of entries --- addressbook/inc/class.addressbook_hooks.inc.php | 1 + addressbook/inc/class.addressbook_ui.inc.php | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/addressbook/inc/class.addressbook_hooks.inc.php b/addressbook/inc/class.addressbook_hooks.inc.php index acc5268f88..ba95778ebe 100644 --- a/addressbook/inc/class.addressbook_hooks.inc.php +++ b/addressbook/inc/class.addressbook_hooks.inc.php @@ -312,6 +312,7 @@ class addressbook_hooks 'menuaction' => 'addressbook.addressbook_ui.view' ), 'view_id' => 'contact_id', + 'view_list' => 'addressbook.addressbook_ui.index', 'add' => array( 'menuaction' => 'addressbook.addressbook_ui.edit' ), diff --git a/addressbook/inc/class.addressbook_ui.inc.php b/addressbook/inc/class.addressbook_ui.inc.php index f1e825e5c3..8621eac974 100644 --- a/addressbook/inc/class.addressbook_ui.inc.php +++ b/addressbook/inc/class.addressbook_ui.inc.php @@ -208,6 +208,11 @@ class addressbook_ui extends addressbook_bo $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 ($this->lists_available())