function weather_theme in Weather 7
Same name and namespace in other branches
- 8 weather.module \weather_theme()
- 6.5 weather.module \weather_theme()
- 7.3 weather.module \weather_theme()
- 7.2 weather.module \weather_theme()
- 2.0.x weather.module \weather_theme()
Implement hook_theme().
File
- ./
weather.module, line 575 - Display current weather data from many places in the world.
Code
function weather_theme() {
return array(
// Custom theme function for preprocessing variables
'weather_theming' => array(
'file' => 'weather_theme.inc',
'variables' => array(
'display' => NULL,
'location' => NULL,
'metar' => NULL,
),
),
// Default block layout
'weather' => array(
'template' => 'weather',
'variables' => array(
'weather' => NULL,
),
),
// Compact block layout
'weather_compact' => array(
'template' => 'weather_compact',
'variables' => array(
'weather' => NULL,
),
),
);
}