You are here

function entity_share_ui_client_menu_local_tasks_alter in Entity Share 7

Implements hook_menu_local_tasks_alter().

File

modules/entity_share_ui/modules/entity_share_ui_client/entity_share_ui_client.module, line 94
Entity Share UI Client .module file.

Code

function entity_share_ui_client_menu_local_tasks_alter(&$data, $router_item, $root_path) {
  if ($root_path == 'admin/config/entity_share/client') {
    $item = menu_get_item('admin/entity_share/endpoint/add');
    if ($item['access']) {
      $data['actions']['output'][] = array(
        '#theme' => 'menu_local_action',
        '#link' => $item,
      );
    }
  }
}