You are here

function weather_theme in Weather 2.0.x

Same name and namespace in other branches
  1. 8 weather.module \weather_theme()
  2. 6.5 weather.module \weather_theme()
  3. 7.3 weather.module \weather_theme()
  4. 7 weather.module \weather_theme()
  5. 7.2 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,
      ],
    ],
  ];
}