You are here

function imagecache_external_menu in Imagecache External 6.2

Same name and namespace in other branches
  1. 6 imagecache_external.module \imagecache_external_menu()
  2. 7.2 imagecache_external.module \imagecache_external_menu()
  3. 7 imagecache_external.module \imagecache_external_menu()

Implementation of hook_menu().

File

./imagecache_external.module, line 14

Code

function imagecache_external_menu() {

  // more complex menu item
  $items['admin/settings/imagecache_external'] = array(
    'title' => 'Imagecache External',
    'description' => 'Configure imagecache external',
    'file' => 'imagecache_external.admin.inc',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'imagecache_external_admin_form',
    ),
    'access arguments' => array(
      'Administer imagecache external',
    ),
    'type' => MENU_NORMAL_ITEM,
  );
  $items['admin/settings/imagecache_external/settings'] = array(
    'title' => 'Settings',
    'description' => 'Configure imagecache external',
    'file' => 'imagecache_external.admin.inc',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'imagecache_external_admin_form',
    ),
    'access arguments' => array(
      'Administer imagecache external',
    ),
    'type' => MENU_DEFAULT_LOCAL_TASK,
  );
  $items['admin/settings/imagecache_external/flush'] = array(
    'title' => 'Flush external images',
    'description' => 'Flush external images',
    'file' => 'imagecache_external.admin.inc',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'imagecache_external_flush_form',
    ),
    'access arguments' => array(
      'Administer imagecache external',
    ),
    'type' => MENU_LOCAL_TASK,
  );
  return $items;
}