function email_example_menu

Same name in other branches
  1. 6.x-1.x 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

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;
}