function theme_file_entity_search_admin in File Entity (fieldable files) 7.3
Same name and namespace in other branches
- 7.2 file_entity.module \theme_file_entity_search_admin()
Returns HTML for the file ranking part of the search settings admin page.
Parameters
$variables: An associative array containing:
- form: A render element representing the form.
File
- ./
file_entity.module, line 681 - Extends Drupal file entities to be fieldable and viewable.
Code
function theme_file_entity_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;
}