function exif_custom_menu in EXIF Custom 7
Implements hook_menu().
File
- ./
exif_custom.module, line 11 - Primary hook implementations for EXIF Custom.
Code
function exif_custom_menu() {
$items['admin/config/media/exif_custom'] = array(
'type' => MENU_NORMAL_ITEM,
'title' => 'Custom EXIF Mappings',
'description' => 'Customise mappings of EXIF data',
'page callback' => 'exif_custom_mappings',
'access callback' => 'exif_custom_main_page_access',
'file' => 'exif_custom.pages.inc',
);
$items['admin/config/media/exif_custom/maps'] = array(
'type' => MENU_DEFAULT_LOCAL_TASK,
'title' => 'Custom EXIF Mappings',
'description' => 'Customise mappings of EXIF data',
'page callback' => 'exif_custom_mappings',
'access callback' => 'exif_custom_main_page_access',
'file' => 'exif_custom.pages.inc',
);
$items['admin/config/media/exif_custom/add'] = array(
'type' => MENU_LOCAL_TASK,
'title' => 'New EXIF Mapping',
'description' => 'Customise mappings of EXIF data',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'exif_custom_new_map_form',
),
'access arguments' => array(
'administer exif_custom',
),
'file' => 'exif_custom.add.inc',
);
$items['admin/config/media/exif_custom/map/%'] = array(
'type' => MENU_NORMAL_ITEM,
// @todo Title callback?
'title' => 'Edit mapping',
'description' => 'Customise mappings of EXIF data',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'exif_custom_map_edit_form',
),
'access arguments' => array(
'administer exif_custom',
),
'file' => 'exif_custom.edit.inc',
);
$items['admin/config/media/exif_custom/settings'] = array(
'type' => MENU_LOCAL_TASK,
'title' => 'Settings',
'description' => 'Customise general settings for EXIF import',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'exif_custom_settings_form',
),
'access arguments' => array(
'administer exif_custom',
),
'file' => 'exif_custom.settings.inc',
);
$items['admin/config/media/exif_custom/user'] = array(
'type' => MENU_LOCAL_TASK,
'title' => 'User Settings',
'description' => 'Customise general settings for EXIF import',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'exif_custom_settings_form_user',
),
'access arguments' => array(
'have default image metadata profile',
),
'file' => 'exif_custom.user.inc',
);
return $items;
}