You are here

function exif_menu in Exif 6

Same name and namespace in other branches
  1. 5 exif.module \exif_menu()
  2. 7 exif.module \exif_menu()

@author: Raphael Schär - www.rapsli.ch

File

./exif.module, line 10
implementing the drupal api

Code

function exif_menu() {
  $items['admin/settings/exif'] = array(
    'title' => 'Exif',
    'page callback' => 'exif_admin_settings',
    'access arguments' => array(
      'administer site configuration',
    ),
    'description' => t('Display available fields'),
    'access callback' => 'user_access',
    'file' => 'exif.admin.inc',
    'type' => MENU_NORMAL_ITEM,
  );
  $items['admin/settings/exif/general'] = array(
    'title' => 'Exif',
    'page callback' => 'exif_admin_settings',
    'access arguments' => array(
      'administer site configuration',
    ),
    'description' => t('Display available fields'),
    'access callback' => 'user_access',
    'file' => 'exif.admin.inc',
    'type' => MENU_DEFAULT_LOCAL_TASK,
  );
  $items['admin/settings/exif/config'] = array(
    'title' => 'Config',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'exif_admin_settings_form',
    ),
    'access arguments' => array(
      'administer site configuration',
    ),
    'description' => t('Some Settings'),
    'access callback' => 'user_access',
    'file' => 'exif.admin.inc',
    'type' => MENU_LOCAL_TASK,
  );
  return $items;
}