You are here

function evercurrent_menu in Evercurrent 7.2

Same name and namespace in other branches
  1. 7 evercurrent.module \evercurrent_menu()

Implements hook_menu().

File

./evercurrent.module, line 28
evercurrent.module

Code

function evercurrent_menu() {
  $items = array();
  $items['admin/config/system/evercurrent'] = array(
    'title' => 'Evercurrent',
    'description' => 'Manage Evercurrent API key and settings',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'evercurrent_settings_form',
    ),
    'file' => 'evercurrent.admin.inc',
    'access arguments' => array(
      'administer site configuration',
    ),
    'type' => MENU_NORMAL_ITEM,
  );
  $items['api/rmc/key'] = array(
    'title' => 'Callback for receiving configuration',
    'type' => MENU_CALLBACK,
    'page callback' => 'evercurrent_key',
    'access callback' => 'evercurrent_is_listening',
  );
  return $items;
}