diff --git a/materio_search_api.module b/materio_search_api.module index b0d579d9..c51b58f2 100755 --- a/materio_search_api.module +++ b/materio_search_api.module @@ -445,6 +445,7 @@ function materio_search_api_block_info() { 'cache' => DRUPAL_NO_CACHE ); + # NOT USED $blocks['materio_search_api_viewmode'] = array( 'info' => t('Materio search api view mode selection'), 'cache' => DRUPAL_NO_CACHE @@ -494,6 +495,8 @@ function materio_search_api_block_view($delta = '') { // $block['content'] = theme('materio_search_api_filters_block', array()); // } // break; + + # NOT USED case 'materio_sa_adv_search': if(user_access('use materio search api advanced search')){ $block['subject'] = t('Advanced Search'); @@ -675,7 +678,7 @@ function materio_search_api_search_form_submit($form, &$form_state){ /** - * materiobase_search_form() + * materiobase_advancedsearch_form() */ function materio_search_api_advanced_search_form($form, &$form_state){ // dsm($form_state, 'form_state'); @@ -839,11 +842,11 @@ function materio_search_api_advanced_search_form_validate($form, &$form_state){ } function materio_search_api_advanced_search_form_submit($form, &$form_state){ - dsm($form, 'form'); - dsm($form_state, 'form_state'); + // dsm($form, 'form'); + // dsm($form_state, 'form_state'); $fs_values = $form_state['values']['slider']; unset($fs_values['show']); - dsm($fs_values, 'values'); + // dsm($fs_values, 'values'); foreach($fs_values as $voc => $trees){ foreach($trees as $tree => $values){ diff --git a/materio_search_api.pages.inc b/materio_search_api.pages.inc index 61ade9da..52e47bd6 100755 --- a/materio_search_api.pages.inc +++ b/materio_search_api.pages.inc @@ -159,7 +159,7 @@ function materio_search_api_results_search(){ } else if(user_access('use materio search api')){ // dsm('normal search'); - // switch index depending on key words type full text or taxonomy term (autocomplete selection) + # switch index depending on key words type full text or taxonomy term (autocomplete selection) $searchmode = isset($user->data['materiosearchapi_searchmode']) ? $user->data['materiosearchapi_searchmode'] : "fulltext"; switch($searchmode){ case "fulltext": @@ -180,13 +180,13 @@ function materio_search_api_results_search(){ } if(!user_access('use materio search api advanced search') && !user_access('use materio search api')){ - // potential results index for anonymous and free user + # potential results index for anonymous and free user $could_index_machine_name = variable_get('mainsearchindex_'.$language->language, -1); $could_index = search_api_index_load($index_machine_name); } if ($typed) { - // TODO: cache the results with cache graceful : http://drupal.org/project/cache_graceful + # TODO: cache the results with cache graceful : http://drupal.org/project/cache_graceful try { # retrieve viewmode and then use it to define the query range