You are here

function clone_menu_local_tasks_alter in Node clone 7

Implements hook_menu_local_tasks_alter

File

./clone.module, line 133
Allow users to make a copy of an item of content (a node) and then edit that copy.

Code

function clone_menu_local_tasks_alter(&$data, $router_item, $root_path) {

  // Remove tabs from the node clone form - these are confusing as they link to
  // the the original node and its edit form.
  if ($router_item['path'] == 'node/%/clone/%') {
    $data['tabs'] = array();
  }
}