function taxonomy_edge_form_taxonomy_overview_vocabularies_alter in Taxonomy Edge 7
Same name and namespace in other branches
- 8 taxonomy_edge.module \taxonomy_edge_form_taxonomy_overview_vocabularies_alter()
- 6 taxonomy_edge.module \taxonomy_edge_form_taxonomy_overview_vocabularies_alter()
- 7.2 taxonomy_edge.module \taxonomy_edge_form_taxonomy_overview_vocabularies_alter()
Implements hook_form_taxonomy_overview_vocabularies_alter().
Hook into the overview of vocabularies to provide rebuild actions.
File
- ./
taxonomy_edge.module, line 295 - Optimization of taxonomy data model for SQL performance.
Code
function taxonomy_edge_form_taxonomy_overview_vocabularies_alter(&$form, &$form_state) {
if (user_access('administer taxonomy edge')) {
foreach (taxonomy_get_vocabularies() as $vocabulary) {
$form[$vocabulary->vid]['rebuild_edges'] = array(
'#type' => 'link',
'#title' => t('rebuild edges'),
'#href' => "admin/structure/taxonomy/rebuild/edges/{$vocabulary->machine_name}",
);
$form[$vocabulary->vid]['rebuild_order'] = array(
'#type' => 'link',
'#title' => t('rebuild order'),
'#href' => "admin/structure/taxonomy/rebuild/order/{$vocabulary->machine_name}",
);
$form[$vocabulary->vid]['rebuild_all'] = array(
'#type' => 'link',
'#title' => t('rebuild everything'),
'#href' => "admin/structure/taxonomy/rebuild/all/{$vocabulary->machine_name}",
);
}
$form['#theme'] = 'taxonomy_edge_overview_vocabularies';
}
}