You are here

function patterns_export_menu_alter in Patterns 7

Same name and namespace in other branches
  1. 7.2 patterns_export/patterns_export.module \patterns_export_menu_alter()

Implements hook_menu_alter()

Adds a tab in the main Patterns menu

File

patterns_export/patterns_export.module, line 20

Code

function patterns_export_menu_alter(&$items) {
  $items['admin/patterns/export'] = array(
    'title' => 'Export',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'patterns_export',
    ),
    'access arguments' => array(
      'administer patterns',
    ),
    'type' => MENU_LOCAL_TASK,
  );
  return $items;
}