You are here

function image_menu in Image 5

Same name and namespace in other branches
  1. 5.2 image.module \image_menu()
  2. 6 image.module \image_menu()

Implementation of hook_menu

File

./image.module, line 254

Code

function image_menu($may_cache) {
  $items = array();
  if ($may_cache) {
    $items[] = array(
      'path' => 'node/add/image',
      'title' => t('Image'),
      'access' => user_access('create images'),
    );
    $items[] = array(
      'path' => 'image/view',
      'title' => t('image'),
      'access' => user_access('access content'),
      'type' => MENU_CALLBACK,
      'callback' => 'image_fetch',
    );
    $items[] = array(
      'path' => 'admin/settings/image',
      'title' => t('Image'),
      'callback' => 'drupal_get_form',
      'callback arguments' => array(
        'image_admin_settings',
      ),
      'access' => user_access('administer site configuration'),
      'type' => MENU_NORMAL_ITEM,
      'description' => t('Image module settings.'),
    );
  }
  return $items;
}