You are here

function wunderground_weather_theme in Wunderground weather 8

Same name and namespace in other branches
  1. 7 wunderground_weather.module \wunderground_weather_theme()

Implements hook_theme().

File

./wunderground_weather.module, line 6

Code

function wunderground_weather_theme() {
  return [
    'wunderground_weather_forecast' => [
      'variables' => [
        'title' => NULL,
        'data' => NULL,
        'icon_set' => NULL,
        'fields' => NULL,
        'temperature_scale' => NULL,
        'windspeed_scale' => NULL,
      ],
      'function' => 'theme_wunderground_weather_forecast',
    ],
    'wunderground_weather_current' => [
      'variables' => [
        'image' => NULL,
        'summary' => NULL,
      ],
      'template' => 'wunderground_weather_current',
    ],
  ];
}