From ec018fc57f2dccab90845202808d3215baa72042 Mon Sep 17 00:00:00 2001 From: Jakub Skoczen Date: Mon, 7 Mar 2011 18:10:22 +0100 Subject: [PATCH] New form of the search hook as agreed with Reload The hook is called ting_search_tab and allows the client code to also specify tab name --- mkdru.module | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/mkdru.module b/mkdru.module index 6277314..a4845e2 100644 --- a/mkdru.module +++ b/mkdru.module @@ -17,7 +17,8 @@ function mkdru_node_info() { ); } -function mkdru_ting_search_show($params) { +function mkdru_ting_search_tab($keys) { + error_log("TING SEARCH TAB invoked"); $path = drupal_get_path('module', 'mkdru'); // Include client library. drupal_add_js(variable_get('pz2_js_path', 'pazpar2/js') @@ -33,10 +34,10 @@ function mkdru_ting_search_show($params) { 'pz2_path' => variable_get('pz2_path', '/pazpar2/search.pz2'), 'sp_user' => variable_get('sp_user', ''), 'sp_pass' => variable_get('sp_pass', ''), - 'query' => $params['keys'] + 'query' => $keys ) ), 'setting'); - return array("content" => $html); + return array("content" => $html, "title" => "Meta Search"); } /** -- 1.7.10.4