From ace9de07e28c4c7ad843ee539c7ebbe88efbfadd Mon Sep 17 00:00:00 2001 From: Bachir Soussi Chiadmi Date: Wed, 21 Oct 2015 17:44:29 +0200 Subject: [PATCH] started base home back btn --- .../modules/gui/materiobasemod/materio_search_api.module | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/sites/all/modules/gui/materiobasemod/materio_search_api.module b/sites/all/modules/gui/materiobasemod/materio_search_api.module index 251428e6..652279ba 100755 --- a/sites/all/modules/gui/materiobasemod/materio_search_api.module +++ b/sites/all/modules/gui/materiobasemod/materio_search_api.module @@ -592,6 +592,14 @@ function materio_search_api_search_form($form, &$form_state){ $default_value = ''; } + // add a back tu search/base home bouton if on explore/foo + // if ($path == 'explore') { + // $form['actu'] = array( + // '#type' => 'markup', + // '#markup' => '' + // ); + // } + $form['searchfield'] = array( '#type' => 'textfield', '#default_value' => $path == 'explore' ? $keys : $default_value, // TODO: set the search page path global or a variable in settings @@ -1049,4 +1057,3 @@ function materio_search_api_block_view_alter(&$data, $block) { } } } -