You are here

function imagecache_external_menu in Imagecache External 6

Same name and namespace in other branches
  1. 6.2 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() {

  // This is the minimum information you can provide for a menu item.
  $items['external'] = array(
    'title' => 'External image',
    'page callback' => 'imagecache_external_image',
    'access arguments' => array(
      'View external images',
    ),
    'type' => MENU_CALLBACK,
  );

  // 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;
}