function htmlmail_menu in HTML Mail 5
Same name and namespace in other branches
- 8.2 htmlmail.module \htmlmail_menu()
- 6.2 htmlmail.module \htmlmail_menu()
- 6 htmlmail.module \htmlmail_menu()
- 7.2 htmlmail.module \htmlmail_menu()
- 7 htmlmail.module \htmlmail_menu()
Implementation of hook_menu().
File
- ./
htmlmail.module, line 23 - Send system emails in HTML
Code
function htmlmail_menu() {
$items = array();
$items[] = array(
'path' => 'admin/settings/htmlmail',
'title' => t('HTML Mail'),
'callback' => 'drupal_get_form',
'callback arguments' => 'htmlmail_admin_settings',
'description' => t('Configure HTML Mail system-wide settings.'),
'access' => user_access('access administration pages'),
);
$items[] = array(
'path' => 'admin/settings/htmlmail/settings',
'title' => t('Settings'),
'callback' => 'drupal_get_form',
'callback arguments' => 'htmlmail_admin',
'access' => user_access('access administration pages'),
'type' => MENU_DEFAULT_LOCAL_TASK,
'weight' => '-2',
);
$items[] = array(
'path' => 'admin/settings/htmlmail/template',
'title' => t('Template'),
'callback' => 'drupal_get_form',
'callback arguments' => array(
'htmlmail_template_settings',
),
'type' => MENU_LOCAL_TASK,
'access' => user_access('access administration pages'),
'weight' => '-1',
);
$items[] = array(
'path' => 'admin/settings/htmlmail/test',
'title' => t('Send Test'),
'callback' => 'drupal_get_form',
'callback arguments' => array(
'htmlmail_test_form',
),
'type' => MENU_LOCAL_TASK,
'access' => user_access('access administration pages'),
);
return $items;
}