You are here

function taxonomy_manager_tree_operations in Taxonomy Manager 5

Same name and namespace in other branches
  1. 6 taxonomy_manager.module \taxonomy_manager_tree_operations()

function gets called by the taxonomy_manager_tree form type (form_id +_operations) return an form array with values to show next to every term value

File

./taxonomy_manager.module, line 312
Taxonomy Manager

Code

function taxonomy_manager_tree_operations() {
  $form = array();
  if (!variable_get('taxonomy_manager_disable_mouseover_weights', 0)) {
    $module_path = drupal_get_path('module', 'taxonomy_manager') . '/';
    $form['up'] = array(
      '#value' => theme("image", $module_path . "images/go-up-small.png", "go up", NULL, array(
        'class' => 'term-up',
      )),
    );
    $form['down'] = array(
      '#value' => theme("image", $module_path . "images/go-down-small.png", "go down", NULL, array(
        'class' => 'term-down',
      )),
    );
  }
  return $form;
}