You are here

function shrinktheweb_menu in ShrinkTheWeb 7

Same name and namespace in other branches
  1. 6 shrinktheweb.module \shrinktheweb_menu()

Implementation of hook_menu().

File

./shrinktheweb.module, line 27

Code

function shrinktheweb_menu() {
  $items = array();
  $items['admin/config/media/shrinktheweb'] = array(
    'title' => 'ShrinkTheWeb',
    'description' => 'Configure API settings such as public, private keys, thumbnails cache and other',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'shrinktheweb_admin_settings',
    ),
    'access arguments' => array(
      'administer ShrinkTheWeb settings',
    ),
    'file' => 'shrinktheweb.admin.inc',
  );
  $items['admin/config/media/shrinktheweb/settings'] = array(
    'title' => 'Settings',
    'type' => MENU_DEFAULT_LOCAL_TASK,
    'weight' => -10,
  );
  $items['admin/config/media/shrinktheweb/log'] = array(
    'title' => 'Log',
    'description' => 'Browse the request records',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'shrinktheweb_admin_log',
    ),
    'access arguments' => array(
      'administer ShrinkTheWeb settings',
    ),
    'type' => MENU_LOCAL_TASK,
    'weight' => 0,
    'file' => 'shrinktheweb.admin.inc',
  );
  return $items;
}