1 node.theme.inc theme_node_search_factors($variables)

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

Parameters

$variables: An associative array containing:

  • element: A render element representing the content rankings portion of the form.

See also

node_search_admin()

Related topics

File

core/modules/node/node.theme.inc, line 66
Theme functions for the Node module.

Code

function theme_node_search_factors($variables) {
  $element = $variables['element'];

  $rows = array();
  $header = array(t('Factor'), t('Influence'));
  foreach (element_children($element) as $key) {
    $row = array();
    $row[] = $element[$key]['#title'];
    $element[$key]['#title_display'] = 'invisible';
    $row[] = backdrop_render($element[$key]);
    $rows[] = $row;
  }
  $output = '';
  $output .= theme('help', array('markup' => $element['#help']));
  $output .= theme('table', array('header' => $header, 'rows' => $rows));
  $output .= backdrop_render_children($element);
  return $output;
}