function weather_es_menu in Weather_es 6.2
Same name and namespace in other branches
- 5 weather_es.module \weather_es_menu()
- 6.3 weather_es.module \weather_es_menu()
- 6 weather_es.module \weather_es_menu()
- 7 weather_es.module \weather_es_menu()
Implementation of hook_menu().
File
- ./
weather_es.module, line 58 - Shows weather data of Spain (by AEMET)
Code
function weather_es_menu() {
global $user;
$items['admin/settings/weather_es'] = array(
'title' => 'Weather_es',
'description' => 'Configure the system weather_es block.',
'page callback' => 'weather_es_main',
'page arguments' => array(
0,
),
'access arguments' => array(
'administer site configuration',
),
'type' => MENU_NORMAL_ITEM,
);
$items['admin/settings/weather_es/edit'] = array(
'title' => 'Weather_es',
'description' => 'Configure the system weather_es block',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'weather_es_configuration_form',
0,
),
'access arguments' => array(
'administer site configuration',
),
'type' => MENU_CALLBACK,
);
$items['admin/settings/weather_es/delete'] = array(
'title' => 'Delete a location',
'description' => 'Delete a location from the system weather_es block',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'weather_es_confirm_delete_form',
0,
),
'access arguments' => array(
'administer site configuration',
),
'type' => MENU_CALLBACK,
);
$items['user/%/weather_es'] = array(
'title' => 'My weather_es',
'description' => 'Configure your custom weather_es block.',
'page callback' => 'weather_es_main',
'page arguments' => array(
1,
),
'access arguments' => array(
'administer custom weather_es block',
),
'type' => MENU_LOCAL_TASK,
);
$items['user/%/weather_es/edit'] = array(
'title' => 'Edit my weather_es',
'description' => 'Configure your custom weather_es block',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'weather_es_configuration_form',
1,
),
'access arguments' => array(
'administer custom weather_es block',
),
'type' => MENU_CALLBACK,
);
$items['user/%/weather_es/delete'] = array(
'title' => 'Delete a location from my weather_es',
'description' => 'Delete a location from my weather_es block',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'weather_es_confirm_delete_form',
1,
),
'access arguments' => array(
'administer custom weather_es block',
),
'type' => MENU_CALLBACK,
);
$items['weather_es/reload'] = array(
'page callback' => 'reload_weather_es_block',
'access arguments' => array(
'access content',
),
'type' => MENU_CALLBACK,
);
return $items;
}