You are here

function linkit_menu_alter in Linkit 7.3

Same name and namespace in other branches
  1. 7.2 linkit.module \linkit_menu_alter()

Implements hook_menu_alter().

File

./linkit.module, line 335
Main file for Linkit module.

Code

function linkit_menu_alter(&$items) {

  // Override the default titles that ctools export_ui sets.
  // This way there is less code compared to define this in the plugin array.
  $items['admin/config/content/linkit/add']['title'] = 'Add new profile';
  $items['admin/config/content/linkit/import']['title'] = 'Import profiles';

  // Make tabs instead of action links.
  $items['admin/config/content/linkit/add']['type'] = MENU_LOCAL_TASK;
  $items['admin/config/content/linkit/import']['type'] = MENU_LOCAL_TASK;
}