You are here

function mimemail_menu in Mime Mail 5

Same name and namespace in other branches
  1. 6 mimemail.module \mimemail_menu()
  2. 7 mimemail.module \mimemail_menu()

Implementation of hook_menu()

File

./mimemail.module, line 11
Component module for sending Mime-encoded emails.

Code

function mimemail_menu() {
  $items[] = array(
    'path' => 'admin/settings/mimemail',
    'title' => t('Mail'),
    'description' => t('HTML E-mail settings'),
    'callback' => 'drupal_get_form',
    'callback arguments' => 'mimemail_settings',
    'access' => user_access('administer site configuration'),
    'type' => MENU_NORMAL_ITEM,
  );
  $items[] = array(
    'path' => 'mimemail',
    'callback' => 'mimemail_post',
    'access' => variable_get('mimemail_incoming', FALSE),
    'type' => MENU_CALLBACK,
  );
  return $items;
}