You are here

function email_menu in Email Field 6

Same name and namespace in other branches
  1. 5 email.module \email_menu()
  2. 6.2 email.module \email_menu()
  3. 7 email.module \email_menu()

Implementation of hook_menu().

File

./email.module, line 258

Code

function email_menu() {
  $items['email/%node/%'] = array(
    'title' => 'Email Contact Form',
    'page callback' => 'email_mail_page',
    'page arguments' => array(
      1,
      2,
    ),
    'access callback' => 'node_access',
    'access arguments' => array(
      'view',
      1,
    ),
    'type' => MENU_CALLBACK,
  );
  $items['admin/settings/email'] = array(
    'title' => 'CCK Email Contact Form Settings',
    'description' => 'Administer flood control settings for email contact forms',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'email_admin_settings',
    ),
    'access arguments' => array(
      'administer site configuration',
    ),
  );
  return $items;
}