function hook_search_admin


Error message

User warning: The following module is missing from the file system: theme/theme. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1156 of /var/www/html/elmsln_community/
cis7 search.api.php hook_search_admin()
cle7 search.api.php hook_search_admin()
elmsmedia7 search.api.php hook_search_admin()
icor7 search.api.php hook_search_admin()
meedjum_blog7 search.api.php hook_search_admin()
mooc7 search.api.php hook_search_admin()

Add elements to the search settings form.

Return value

Form array for the Search settings page at admin/config/search/settings.

Related topics

4 functions implement hook_search_admin()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

file_entity_search_admin in sites/all/modules/ulmus/file_entity/file_entity.module
Implements hook_search_admin().
node_search_admin in modules/node/node.module
Implements hook_search_admin().
theme_file_entity_search_admin in sites/all/modules/ulmus/file_entity/file_entity.module
Returns HTML for the file ranking part of the search settings admin page.
theme_node_search_admin in modules/node/node.module
Returns HTML for the content ranking part of the search settings admin page.
1 invocation of hook_search_admin()
search_admin_settings in modules/search/
Menu callback: displays the search module settings page.


modules/search/search.api.php, line 104
Hooks provided by the Search module.


function hook_search_admin() {
  // Output form for defining rank factor weights.
  $form['content_ranking'] = array(
    '#type' => 'fieldset',
    '#title' => t('Content ranking'),
  $form['content_ranking']['#theme'] = 'node_search_admin';
  $form['content_ranking']['info'] = array(
    '#value' => '<em>' . t('The following numbers control which properties the content search should favor when ordering the results. Higher numbers mean more influence, zero means the property is ignored. Changing these numbers does not require the search index to be rebuilt. Changes take effect immediately.') . '</em>',

  // Note: reversed to reflect that higher number = higher ranking.
  $options = drupal_map_assoc(range(0, 10));
  foreach (module_invoke_all('ranking') as $var => $values) {
    $form['content_ranking']['factors']['node_rank_' . $var] = array(
      '#title' => $values['title'],
      '#type' => 'select',
      '#options' => $options,
      '#default_value' => variable_get('node_rank_' . $var, 0),
  return $form;



Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/ in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/
The website encountered an unexpected error. Please try again later.