You are here

function party_activity_menu_local_tasks_alter in Party 7

Same name and namespace in other branches
  1. 8.2 modules/party_activity/party_activity.module \party_activity_menu_local_tasks_alter()

Implements hook_menu_local_tasks_alter().

File

modules/party_activity/party_activity.module, line 329
Functions and important hooks for the party_activity module

Code

function party_activity_menu_local_tasks_alter(&$data, $router_item, $root_path) {
  if ($root_path == 'admin/community/activities') {
    $item = menu_get_item('admin/community/activities/add');
    if ($item['access']) {
      $data['actions']['output'][] = array(
        '#theme' => 'menu_local_action',
        '#link' => $item,
      );
    }
  }
}