function exif_menu in Exif 7
Same name and namespace in other branches
- 5 exif.module \exif_menu()
- 6 exif.module \exif_menu()
@author: Jean-Philippe Hautin
Adapted from exif module by Raphael Schär - www.rapsli.ch, www.schaerwebdesign.ch Changes:
- suppress need of 'sub-module' exif_helper
- update to use Drupal 7 Field API (new hook and logic)
- update to use Drupal 7 i18n nodes
- Support several field types
- text field (as previous version)
- term reference type (new !). This allow to
- able to create terms (iptc and exif values)
- able to create parent terms (iptc and exif field key)
File
- ./
exif.module, line 21
Code
function exif_menu() {
$items['admin/config/media/exif'] = array(
'title' => 'Image Metadata',
'page callback' => 'exif_admin_settings',
'access arguments' => array(
'administer image metadata',
),
'description' => t('Display available fields'),
'access callback' => 'user_access',
'file' => 'exif.admin.inc',
'type' => MENU_NORMAL_ITEM,
);
$items['admin/config/media/exif/general'] = array(
'title' => 'Image Metadata',
'page callback' => 'exif_admin_settings',
'access arguments' => array(
'administer image metadata',
),
'description' => t('Display available fields'),
'access callback' => 'user_access',
'file' => 'exif.admin.inc',
'type' => MENU_DEFAULT_LOCAL_TASK,
);
$items['admin/config/media/exif/settings'] = array(
'title' => 'Image Metadata fields settings',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'exif_admin_settings_form',
),
'access arguments' => array(
'administer image metadata',
),
'description' => t('Images Metadata Settings'),
'access callback' => 'user_access',
'file' => 'exif.admin.inc',
'type' => MENU_LOCAL_TASK,
);
return $items;
}