function weather_theme in Weather 8
Same name and namespace in other branches
- 6.5 weather.module \weather_theme()
- 7.3 weather.module \weather_theme()
- 7 weather.module \weather_theme()
- 7.2 weather.module \weather_theme()
- 2.0.x weather.module \weather_theme()
Implements hook_theme().
File
- ./
weather.module, line 47 - Main module file with hooks implementations.
Code
function weather_theme() {
return [
// Compact forecast template (default for blocks)
'weather' => [
'template' => 'weather',
'variables' => [
'display_type' => NULL,
'display_number' => NULL,
'destination' => NULL,
],
],
// Detailed forecast template.
'weather_detailed_forecast' => [
'template' => 'weather_detailed_forecast',
'variables' => [
'weather_display_place' => NULL,
'display_type' => NULL,
'display_number' => NULL,
],
],
];
}