You are here

function macro_menu in Macro 7

Same name and namespace in other branches
  1. 6 macro.module \macro_menu()

Implementation of hook_menu().

File

./macro.module, line 52
allow administrators to record (export) form submissions allow administrators to replay (import) form submissions

Code

function macro_menu() {
  $items = array();
  $items['admin/macro'] = array(
    'title' => 'Macro engine',
    'description' => 'Configure the Drupal macro engine. Export recorded macros or import previously recorded macros.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'macro_admin_settings',
    ),
    'access callback' => 'user_access',
    'access arguments' => array(
      'administer macro settings',
    ),
  );
  $items['admin/macro/export'] = array(
    'title' => 'Export',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'macro_export_macro',
    ),
    'access arguments' => array(
      'macro access',
    ),
    'type' => MENU_LOCAL_TASK,
  );
  $items['admin/macro/import'] = array(
    'title' => 'Import',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'macro_import_macro',
    ),
    'access arguments' => array(
      'macro access',
    ),
    'type' => MENU_LOCAL_TASK,
  );
  $items['admin/macro/settings'] = array(
    'title' => 'Configure',
    'type' => MENU_DEFAULT_LOCAL_TASK,
    'weight' => -10,
  );
  $items['admin/macro/export/session/end'] = array(
    'page callback' => 'macro_end_macro_session',
    'access arguments' => array(
      'macro access',
    ),
    'type' => MENU_CALLBACK,
  );
  return $items;
}