function theme_yr_verdata_table in Yr Weatherdata 6.2
Same name and namespace in other branches
- 7 yr_verdata.module \theme_yr_verdata_table()
Theme function for displaying forecast in a short, inline presentation, for example in a table cell.
Parameters
$vars: An array with various forecast parameters prepared for output.
Return value
Returns the forecast parameters in the correct order, ready for the screen.
File
- ./
yr_verdata.module, line 847 - yr_verdata.module This file contains the code for getting the forecast from yr.no and displaying it on a Drupal site.
Code
function theme_yr_verdata_table($vars) {
$output = '<p class="yr-period-time">' . $vars['time'] . '</p>';
$output .= '<p class="yr-period-forecast"><span class="yr-symbol">' . $vars['symbol'] . '</span>';
$output .= '<span class="yr-wind">' . $vars['wind'] . '</span>';
$output .= $vars['temp'] . '</p>';
return $output;
}