You are here

function pollim_menu_local_tasks_alter in Poll Improved 7

Implements hook_menu_local_tasks_alter().

File

./pollim.module, line 374
Module for the Pollim Entity - a starting point to create your own Entity and associated administration interface

Code

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

  // Add action link 'admin/structure/pollims/add' on 'admin/structure/pollims'.
  if ($root_path == 'admin/content/pollims') {
    $item = menu_get_item('admin/content/pollims/add');
    if ($item['access']) {
      $data['actions']['output'][] = array(
        '#theme' => 'menu_local_action',
        '#link' => $item,
      );
    }
  }
}