You are here

function shorten_cs_menu in Shorten URLs 6

Same name and namespace in other branches
  1. 8.2 modules/shorten_cs/shorten_cs.module \shorten_cs_menu()
  2. 8 modules/shorten_cs/shorten_cs.module \shorten_cs_menu()
  3. 7.2 shorten_cs.module \shorten_cs_menu()
  4. 7 shorten_cs.module \shorten_cs_menu()

Implementation of hook_menu().

File

./shorten_cs.module, line 11
Allows users to specify custom services for the Shorten URLs module.

Code

function shorten_cs_menu() {
  $items = array();
  $items['admin/settings/shorten/custom'] = array(
    'title' => 'Custom services',
    'description' => 'Specify information about any service to expose it to Shorten URLs.',
    'page callback' => 'theme',
    'page arguments' => array(
      'shorten_cs_admin',
    ),
    'access arguments' => array(
      'administer Shorten URLs custom services',
    ),
    'type' => MENU_LOCAL_TASK,
  );
  $items['admin/settings/shorten/custom/edit/%shorten_cs'] = array(
    'title' => 'Edit custom service',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'shorten_cs_edit',
      5,
    ),
    'access arguments' => array(
      'administer Shorten URLs custom services',
    ),
    'type' => MENU_CALLBACK,
    'file' => 'shorten_cs.admin.inc',
  );
  $items['admin/settings/shorten/custom/delete/%shorten_cs'] = array(
    'title' => 'Custom services',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'shorten_cs_delete',
      5,
    ),
    'access arguments' => array(
      'administer Shorten URLs custom services',
    ),
    'type' => MENU_CALLBACK,
    'file' => 'shorten_cs.admin.inc',
  );
  return $items;
}