Full ELMS Learning Network documentation
function theme_filter_admin_overview
×
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_overview($variables) |
cle7 filter.admin.inc | theme_filter_admin_overview($variables) |
elmsmedia7 filter.admin.inc | theme_filter_admin_overview($variables) |
icor7 filter.admin.inc | theme_filter_admin_overview($variables) |
meedjum_blog7 filter.admin.inc | theme_filter_admin_overview($variables) |
mooc7 filter.admin.inc | theme_filter_admin_overview($variables) |
Returns HTML for the text format administration overview form.
Parameters
$variables: An associative array containing:
- form: A render element representing the form.
Related topics
2 string references to the theme hook from theme_filter_admin_overview()
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_menu in modules/
filter/ filter.module - Implements hook_menu().
- filter_theme in modules/
filter/ filter.module - Implements hook_theme().
File
- modules/
filter/ filter.admin.inc, line 75 - Administrative page callbacks for the Filter module.
Code
function theme_filter_admin_overview($variables) {
$form = $variables['form'];
$rows = array();
foreach (element_children($form['formats']) as $id) {
$form['formats'][$id]['weight']['#attributes']['class'] = array('text-format-order-weight');
$rows[] = array(
'data' => array(
drupal_render($form['formats'][$id]['name']),
drupal_render($form['formats'][$id]['roles']),
drupal_render($form['formats'][$id]['weight']),
drupal_render($form['formats'][$id]['configure']),
drupal_render($form['formats'][$id]['disable']),
),
'class' => array('draggable'),
);
}
$header = array(t('Name'), t('Roles'), t('Weight'), array(
'data' => t('Operations'),
'colspan' => 2,
));
$output = theme('table', array('header' => $header, 'rows' => $rows, 'attributes' => array('id' => 'text-format-order')));
$output .= drupal_render_children($form);
drupal_add_tabledrag('text-format-order', 'order', 'sibling', 'text-format-order-weight');
return $output;
}