function email_menu in Email Field 7
Same name and namespace in other branches
- 5 email.module \email_menu()
- 6.2 email.module \email_menu()
- 6 email.module \email_menu()
Implements hook_menu().
File
- ./
email.module, line 193 - Module file for the email module, which creates a email address field.
Code
function email_menu() {
$items['email/%/%/%'] = array(
'title' => 'Email Contact Form',
'page callback' => 'email_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'] = array(
'title' => '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',
),
'type' => MENU_NORMAL_ITEM,
);
return $items;
}