Full ELMS Learning Network documentation
function theme_taxonomy_overview_vocabularies
×
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 taxonomy.admin.inc | theme_taxonomy_overview_vocabularies($variables) |
cle7 taxonomy.admin.inc | theme_taxonomy_overview_vocabularies($variables) |
elmsmedia7 taxonomy.admin.inc | theme_taxonomy_overview_vocabularies($variables) |
icor7 taxonomy.admin.inc | theme_taxonomy_overview_vocabularies($variables) |
meedjum_blog7 taxonomy.admin.inc | theme_taxonomy_overview_vocabularies($variables) |
mooc7 taxonomy.admin.inc | theme_taxonomy_overview_vocabularies($variables) |
Returns HTML for the vocabulary overview form as a sortable list of vocabularies.
Parameters
$variables: An associative array containing:
- form: A render element representing the form.
See also
taxonomy_overview_vocabularies()
Related topics
2 string references to the theme hook from theme_taxonomy_overview_vocabularies()
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.
- taxonomy_menu in modules/
taxonomy/ taxonomy.module - Implements hook_menu().
- taxonomy_theme in modules/
taxonomy/ taxonomy.module - Implements hook_theme().
File
- modules/
taxonomy/ taxonomy.admin.inc, line 70 - Administrative page callbacks for the taxonomy module.
Code
function theme_taxonomy_overview_vocabularies($variables) {
$form = $variables['form'];
$rows = array();
foreach (element_children($form) as $key) {
if (isset($form[$key]['name'])) {
$vocabulary = &$form[$key];
$row = array();
$row[] = drupal_render($vocabulary['name']);
if (isset($vocabulary['weight'])) {
$vocabulary['weight']['#attributes']['class'] = array('vocabulary-weight');
$row[] = drupal_render($vocabulary['weight']);
}
$row[] = drupal_render($vocabulary['edit']);
$row[] = drupal_render($vocabulary['list']);
$row[] = drupal_render($vocabulary['add']);
$rows[] = array(
'data' => $row,
'class' => array('draggable'),
);
}
}
$header = array(t('Vocabulary name'));
if (isset($form['actions'])) {
$header[] = t('Weight');
drupal_add_tabledrag('taxonomy', 'order', 'sibling', 'vocabulary-weight');
}
$header[] = array(
'data' => t('Operations'),
'colspan' => '3',
);
return theme('table', array('header' => $header, 'rows' => $rows, 'empty' => t('No vocabularies available. <a href="@link">Add vocabulary</a>.', array('@link' => url('admin/structure/taxonomy/add'))), 'attributes' => array('id' => 'taxonomy'))) . drupal_render_children($form);
}