function pet_menu in Previewable email templates 6
Same name and namespace in other branches
- 7 pet.module \pet_menu()
Implementation of hook_menu().
File
- ./
pet.module, line 21 - Previewable E-mail Template module.
Code
function pet_menu() {
$items = array();
$items['admin/build/pets'] = array(
'title' => 'Previewable email templates',
'page callback' => 'pet_admin_page',
'access callback' => 'user_access',
'access arguments' => array(
'administer previewable email templates',
),
'description' => 'Configure previewable email templates with token support.',
'file' => 'pet.admin.inc',
'type' => MENU_NORMAL_ITEM,
);
$items['admin/build/pets/edit'] = array(
'title' => 'Edit previewable email templates',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'pet_add_form',
),
'access callback' => 'user_access',
'access arguments' => array(
'administer previewable email templates',
),
'file' => 'pet.admin.inc',
'type' => MENU_CALLBACK,
);
$items['admin/build/pets/delete'] = array(
'title' => 'Delete previewable email templates',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'pet_delete_confirm',
),
'access callback' => 'user_access',
'access arguments' => array(
'administer previewable email templates',
),
'file' => 'pet.admin.inc',
'type' => MENU_CALLBACK,
);
$items['admin/build/pets/list'] = array(
'title' => 'List',
'page callback' => 'pet_admin_page',
'access callback' => 'user_access',
'access arguments' => array(
'administer previewable email templates',
),
'file' => 'pet.admin.inc',
'type' => MENU_DEFAULT_LOCAL_TASK,
'weight' => -1,
);
$items['admin/build/pets/add'] = array(
'title' => 'Add',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'pet_add_form',
),
'access callback' => 'user_access',
'access arguments' => array(
'administer previewable email templates',
),
'file' => 'pet.admin.inc',
'type' => MENU_LOCAL_TASK,
);
$items['pet/%pet'] = array(
'title callback' => 'pet_page_title',
'title arguments' => array(
1,
),
'page callback' => 'drupal_get_form',
'page arguments' => array(
'pet_user_form',
1,
),
'access callback' => 'user_access',
'access arguments' => array(
'use previewable email templates',
),
'file' => 'pet.admin.inc',
'type' => MENU_CALLBACK,
);
return $items;
}