function theme_node_search_admin

7.x node.module theme_node_search_admin($variables)
5.x node.module theme_node_search_admin($form)
6.x node.module theme_node_search_admin($form)
8.x node.module theme_node_search_admin($variables)

Returns HTML for the content ranking part of the search settings admin page.

Parameters

$variables: An associative array containing:

  • form: A render element representing the form.

See also

node_search_admin()

Related topics

2 string references to the theme hook from theme_node_search_admin()

Note: this list is generated by looking for the string for this theme hook, so it may include some references that are not actually using this theme hook.

hook_search_admin in drupal/modules/search/search.api.php
Add elements to the search settings form.
node_theme in drupal/modules/node/node.module
Implements hook_theme().

File

drupal/modules/node/node.module, line 1863
The core that allows content to be submitted to the site. Modules and scripts may programmatically submit nodes using the usual form API pattern.

Code

function theme_node_search_admin($variables) {
  $form = $variables['form'];

  $output = drupal_render($form['info']);

  $header = array(t('Factor'), t('Influence'));
  foreach (element_children($form['factors']) as $key) {
    $row = array();
    $row[] = $form['factors'][$key]['#title'];
    $form['factors'][$key]['#title_display'] = 'invisible';
    $row[] = drupal_render($form['factors'][$key]);
    $rows[] = $row;
  }
  $output .= theme('table', array('header' => $header, 'rows' => $rows));

  $output .= drupal_render_children($form);
  return $output;
}