You are here

function mimemail_menu in Mime Mail 7

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

Implements hook_menu().

File

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

Code

function mimemail_menu() {
  $path = drupal_get_path('module', 'mimemail') . '/includes';

  // Configuration links.
  $items['admin/config/system/mimemail'] = array(
    'title' => 'Mime Mail',
    'description' => 'Manage mime mail system settings.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'mimemail_admin_settings',
    ),
    'access arguments' => array(
      'administer site configuration',
    ),
    'file' => 'mimemail.admin.inc',
    'file path' => $path,
  );
  $items['mimemail'] = array(
    'page callback' => 'mimemail_post',
    'access callback' => 'mimemail_incoming_access',
    'type' => MENU_CALLBACK,
    'file' => 'mimemail.incoming.inc',
    'file path' => $path,
  );
  return $items;
}