You are here

function coffee_menu in Coffee 7.2

Same name and namespace in other branches
  1. 6 coffee.module \coffee_menu()
  2. 7 coffee.module \coffee_menu()

Implements hook_menu().

File

./coffee.module, line 30
Coffee primary module file

Code

function coffee_menu() {
  $items = array();
  $path = drupal_get_path('module', 'coffee');

  // Define callback for menu structure callback.
  $items['admin/coffee/menu'] = array(
    'title' => 'Coffee Menu Response',
    'page callback' => 'coffee_get_menu_response',
    'access arguments' => array(
      'access coffee',
    ),
    'type' => MENU_CALLBACK,
  );
  $items['admin/config/user-interface/coffee'] = array(
    'title' => 'Coffee',
    'description' => 'Configuration for the Coffee module.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'coffee_admin_settings',
    ),
    'access arguments' => array(
      'administer coffee',
    ),
    'type' => MENU_NORMAL_ITEM,
    'file' => 'coffee.admin.inc',
    'file path' => $path,
  );
  return $items;
}