function theme_filter_admin_format_filter_order

×

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 filter.admin.inc theme_filter_admin_format_filter_order($variables)
cle7 filter.admin.inc theme_filter_admin_format_filter_order($variables)
elmsmedia7 filter.admin.inc theme_filter_admin_format_filter_order($variables)
icor7 filter.admin.inc theme_filter_admin_format_filter_order($variables)
meedjum_blog7 filter.admin.inc theme_filter_admin_format_filter_order($variables)
mooc7 filter.admin.inc theme_filter_admin_format_filter_order($variables)

Returns HTML for a text format's filter order form.

Parameters

$variables: An associative array containing:

  • element: A render element representing the form.

Related topics

2 string references to the theme hook from theme_filter_admin_format_filter_order()

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.

filter_admin_format_form in modules/filter/filter.admin.inc
Form constructor for the text format add/edit form.
filter_theme in modules/filter/filter.module
Implements hook_theme().

File

modules/filter/filter.admin.inc, line 303
Administrative page callbacks for the Filter module.

Code

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

  // Filter order (tabledrag).
  $rows = array();
  foreach (element_children($element, TRUE) as $name) {
    $element[$name]['weight']['#attributes']['class'][] = 'filter-order-weight';
    $rows[] = array(
      'data' => array(
        drupal_render($element[$name]['filter']),
        drupal_render($element[$name]['weight']),
      ),
      'class' => array('draggable'),
    );
  }
  $output = drupal_render_children($element);
  $output .= theme('table', array('rows' => $rows, 'attributes' => array('id' => 'filter-order')));
  drupal_add_tabledrag('filter-order', 'order', 'sibling', 'filter-order-weight', NULL, NULL, TRUE);

  return $output;
}