You are here

function wunderground_weather_menu in Wunderground weather 7

Implements hook_menu().

File

./wunderground_weather.module, line 72
Wunderground weather module to display weather forecasts and current weather conditions in blocks.

Code

function wunderground_weather_menu() {

  // Admin page.
  $items['admin/config/services/wunderground-weather'] = array(
    'title' => 'Wunderground weather settings',
    'description' => 'Perform administration tasks for Wunderground weather.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'wunderground_weather_admin_form',
    ),
    'access arguments' => array(
      'administer wunderground weather',
    ),
    'file' => '/wunderground_weather.admin.inc',
  );

  // Menu item for getting location by autocomplete.
  $items['wunderground-locations'] = array(
    'type' => MENU_CALLBACK,
    'page callback' => 'wunderground_weather_location_autocomplete',
    'access arguments' => array(
      'access content',
    ),
  );
  return $items;
}