function theme_file_entity_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/api.elmsln.org/includes/bootstrap.inc).
cis7 file_entity.module theme_file_entity_search_admin($variables)
cle7 file_entity.module theme_file_entity_search_admin($variables)
elmsmedia7 file_entity.module theme_file_entity_search_admin($variables)
icor7 file_entity.module theme_file_entity_search_admin($variables)
meedjum_blog7 file_entity.module theme_file_entity_search_admin($variables)
mooc7 file_entity.module theme_file_entity_search_admin($variables)

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.

Related topics

1 string reference to the theme hook from theme_file_entity_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.

file_entity_theme in sites/all/modules/ulmus/file_entity/file_entity.module
Implements hook_theme().

File

sites/all/modules/ulmus/file_entity/file_entity.module, line 650
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;
}