function email_example_menu in Examples for Developers 7
Same name and namespace in other branches
- 6 email_example/email_example.module \email_example_menu()
Implements hook_menu().
Set up a page with an e-mail contact form on it.
Related topics
File
- email_example/email_example.module, line 159 
- Example of how to use Drupal's mail API.
Code
function email_example_menu() {
  $items['example/email_example'] = array(
    'title' => 'E-mail Example: contact form',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'email_example_form',
    ),
    'access arguments' => array(
      'access content',
    ),
  );
  return $items;
}