You are here

function image_import_menu in Image 5

Same name and namespace in other branches
  1. 5.2 contrib/image_import/image_import.module \image_import_menu()
  2. 6 contrib/image_import/image_import.module \image_import_menu()
  3. 7 contrib/image_import/image_import.module \image_import_menu()

Implementation of hook_menu().

File

contrib/image_import/image_import.module, line 29

Code

function image_import_menu($may_cache) {
  $items = array();
  if ($may_cache) {
    $items[] = array(
      'path' => 'admin/content/image_import',
      'title' => t('Image import'),
      'callback' => 'drupal_get_form',
      'callback arguments' => array(
        'image_import_form',
      ),
      'access' => user_access('import images'),
      'type' => MENU_NORMAL_ITEM,
      'description' => t('Import images from the filesystem.'),
    );
    $items[] = array(
      'path' => 'admin/settings/image_import',
      'title' => t('Image import'),
      'callback' => 'drupal_get_form',
      'callback arguments' => array(
        'image_import_admin_settings',
      ),
      'access' => user_access('administer site configuration'),
      'type' => MENU_NORMAL_ITEM,
      'description' => t('Change settings for the Image Import module.'),
    );
  }
  return $items;
}