function taxonomy_manager_taxonomy_manager_tree_operations in Taxonomy Manager 7
Same name and namespace in other branches
- 6.2 taxonomy_manager.module \taxonomy_manager_taxonomy_manager_tree_operations()
function gets called by the taxonomy_manager_tree form type ('taxonomy_manager_'. form_id .'_operations') return an form array with values to show next to every term value
1 call to taxonomy_manager_taxonomy_manager_tree_operations()
File
- ./
taxonomy_manager.module, line 164 - Taxonomy Manager
Code
function taxonomy_manager_taxonomy_manager_tree_operations($term) {
$form = array();
if (!variable_get('taxonomy_manager_disable_mouseover', 0)) {
$module_path = drupal_get_path('module', 'taxonomy_manager') . '/';
if (_taxonomy_manager_tree_term_children_count($term->tid) > 0) {
$form['select_all'] = array(
'#weight' => -1,
'#markup' => '<span class="select-all-children" title="' . t("Select all children") . '"> </span>',
);
}
$form['up'] = array(
'#markup' => theme("image", array(
'path' => $module_path . "images/go-up-small.png",
'alt' => "go up",
'title' => t("Move up"),
'attributes' => array(
'class' => 'term-up',
),
)),
);
$form['down'] = array(
'#markup' => theme("image", array(
'path' => $module_path . "images/go-down-small.png",
'alt' => "go down",
'title' => t("Move down"),
'attributes' => array(
'class' => 'term-down',
),
)),
);
$link_img = theme("image", array(
'path' => $module_path . "images/link-small.png",
'alt' => "link to term page",
));
$link = l(' ' . $link_img, 'taxonomy/term/' . $term->tid, array(
'attributes' => array(
'rel' => 'tag',
'title' => t("Go to term page"),
'target' => '_blank',
),
'html' => TRUE,
));
$form['link'] = array(
'#markup' => $link,
'#weight' => 10,
);
}
return $form;
}