You are here

function email_contact_menu in Email Contact 7

Implements hook_menu().

File

./email_contact.module, line 184
File name: email_contact.module.

Code

function email_contact_menu() {
  $items['email-contact/%/%/%'] = array(
    'title' => 'Email Contact Form',
    'page callback' => 'email_contact_mail_page',
    'page arguments' => array(
      1,
      2,
      3,
    ),
    'access callback' => 'user_access',
    'access arguments' => array(
      'access content',
    ),
    'type' => MENU_CALLBACK,
  );
  $items['admin/config/content/email-contact'] = array(
    'title' => 'Email Contact Form Settings',
    'description' => 'Administer flood control settings for email contact forms',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'email_contact_admin_settings',
    ),
    'access arguments' => array(
      'administer site configuration',
    ),
    'type' => MENU_CALLBACK,
  );
  return $items;
}