You are here

function weather_theme in Weather 7.3

Same name and namespace in other branches
  1. 8 weather.module \weather_theme()
  2. 6.5 weather.module \weather_theme()
  3. 7 weather.module \weather_theme()
  4. 7.2 weather.module \weather_theme()
  5. 2.0.x weather.module \weather_theme()

Implement hook_theme().

6 string references to 'weather_theme'
weather_handler_condition::render in views_handlers/weather_handler_condition.inc
Render translated condition or <img> tag.
weather_handler_pressure::render in views_handlers/weather_handler_pressure.inc
Render pressure with selected unit.
weather_handler_temperature::render in views_handlers/weather_handler_temperature.inc
Render temperature with selected unit.
weather_handler_wind::render in views_handlers/weather_handler_wind.inc
Render wind information with selected unit.
weather_handler_wind_direction::render in views_handlers/weather_handler_wind_direction.inc
Render wind information with selected unit.

... See full list

File

./weather.module, line 670
Display current weather data from many places in the world.

Code

function weather_theme() {
  return array(
    // Custom theme function for preprocessing variables.
    'weather_forecast_preprocess' => array(
      'file' => 'weather_theme.inc',
      'variables' => array(
        'weather' => NULL,
        'display' => NULL,
      ),
    ),
    // Compact forecast template (default for blocks)
    'weather' => array(
      'template' => 'weather',
      'variables' => array(
        'weather' => NULL,
      ),
    ),
    // Detailed forecast template.
    'weather_detailed_forecast' => array(
      'template' => 'weather_detailed_forecast',
      'variables' => array(
        'weather' => NULL,
      ),
    ),
  );
}