You are here

function image_import_menu in Image 7

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

Implementation of hook_menu().

File

contrib/image_import/image_import.module, line 28

Code

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