function htmlmail_menu in HTML Mail 7
Same name and namespace in other branches
- 8.2 htmlmail.module \htmlmail_menu()
- 5 htmlmail.module \htmlmail_menu()
- 6.2 htmlmail.module \htmlmail_menu()
- 6 htmlmail.module \htmlmail_menu()
- 7.2 htmlmail.module \htmlmail_menu()
Implements hook_menu().
File
- ./
htmlmail.module, line 23 - Send system emails in HTML.
Code
function htmlmail_menu() {
$items['admin/config/system/htmlmail'] = array(
'title' => 'HTML Mail',
'description' => 'Configure HTML Mail system-wide settings.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'htmlmail_admin_settings',
),
'access arguments' => array(
'administer site configuration',
),
'file' => 'htmlmail.admin.inc',
);
$items['admin/config/system/htmlmail/settings'] = array(
'title' => 'Settings',
'type' => MENU_DEFAULT_LOCAL_TASK,
'weight' => '-2',
);
$items['admin/config/system/htmlmail/template'] = array(
'title' => 'Template',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'htmlmail_template_settings',
),
'access arguments' => array(
'access administration pages',
),
'type' => MENU_LOCAL_TASK,
'weight' => '-1',
'file' => 'htmlmail.admin.inc',
);
$items['admin/config/system/htmlmail/test'] = array(
'title' => 'Send Test',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'htmlmail_test_form',
),
'access arguments' => array(
'access administration pages',
),
'type' => MENU_LOCAL_TASK,
'file' => 'htmlmail.admin.inc',
);
// Hack for formatting emails with a Drupal theme: Show them on a regular
// page and then fetch that page via drupal_http_request().
$items['admin/config/system/htmlmail/email'] = array(
'title callback' => 'htmlmail_get_post_subject',
'page callback' => 'htmlmail_show_email',
'theme callback' => 'htmlmail_get_selected_theme',
'access callback' => TRUE,
'type' => MENU_CALLBACK,
'file' => 'htmlmail.admin.inc',
);
return $items;
}