function pet_menu in Previewable email templates 7
Same name and namespace in other branches
- 6 pet.module \pet_menu()
Implements hook_menu().
File
- ./
pet.module, line 11 - Previewable Email Template module.
Code
function pet_menu() {
$path = drupal_get_path('module', 'pet') . '/includes';
$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',
'file path' => $path,
'type' => MENU_CALLBACK,
);
$items['admin/config/system/pet'] = array(
'title' => 'Previewable Email Templates',
'description' => t('Manage previewable email templates settings.'),
'access arguments' => array(
'administer previewable email templates',
),
'page callback' => 'system_admin_menu_block_page',
'file' => 'system.admin.inc',
'file path' => drupal_get_path('module', 'system'),
);
$items['admin/config/system/pet/settings'] = array(
'title' => 'PET settings',
'access arguments' => array(
'administer previewable email templates',
),
'page callback' => 'drupal_get_form',
'page arguments' => array(
'pet_settings',
),
'file' => 'pet.admin.inc',
'file path' => $path,
);
return $items;
}