theme_node_search_admin

  1. drupal
    1. 5
    2. 6
    3. 7
    4. 8
Versions
5 – 6 theme_node_search_admin($form)
7 – 8 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.

Related topics

Code

modules/node/node.module, line 1798

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

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

  $header = array(t('Factor'), t('Weight'));
  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;
}
?>