You are here

function party_activity_menu_local_tasks_alter in Party 8.2

Same name and namespace in other branches
  1. 7 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 286
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,
      );
    }
  }
}