function image_import_menu in Image 5.2
Same name and namespace in other branches
- 5 contrib/image_import/image_import.module \image_import_menu()
- 6 contrib/image_import/image_import.module \image_import_menu()
- 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/image_import',
'title' => t('Image import'),
'description' => t('Change settings for the Image Import module.'),
'callback' => 'drupal_get_form',
'callback arguments' => array(
'image_import_admin_settings',
),
'access' => user_access('administer site configuration'),
'type' => MENU_LOCAL_TASK,
);
}
return $items;
}