function wunderground_weather_variable_info in Wunderground weather 7
Implements hook_variable_info().
File
- ./
wunderground_weather.module, line 35 - Wunderground weather module to display weather forecasts and current weather conditions in blocks.
Code
function wunderground_weather_variable_info($options) {
$variables['wunderground_weather_language'] = array(
'type' => 'select',
'title' => t('Wunderground weather Language', array(), $options),
'default' => 'EN',
'options' => _wunderground_weather_languages(),
'description' => t('The language of the displayed weather data.', array(), $options),
'localize' => TRUE,
);
$variables['wunderground_weather_degrees'] = array(
'type' => 'select',
'title' => t('Wunderground weather Degrees unit', array(), $options),
'default' => 'celsius',
'options' => array(
'fahrenheit' => t('Fahrenheit', array(), $options),
'celsius' => t('Celsius', array(), $options),
),
'description' => t('The unit of temperature.', array(), $options),
'localize' => TRUE,
);
$variables['wunderground_weather_distance'] = array(
'type' => 'select',
'title' => t('Wunderground weather Distance unit', array(), $options),
'default' => 'km',
'options' => array(
'mi' => t('Miles', array(), $options),
'km' => t('Kilometers', array(), $options),
),
'description' => t('The unit of distance.', array(), $options),
'localize' => TRUE,
);
return $variables;
}