You are here

function weather_help in Weather 7.3

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

Implements hook_help().

File

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

Code

function weather_help($path, $arg) {
  $output = '';
  switch ($path) {
    case 'admin/config/user-interface/weather':
      $output .= '<p>';
      $output .= t('You can add, edit, and delete locations from system-wide weather displays. Moreover, you can specify default values for newly created displays. If you want to change the format of the displayed date, you can do that in the <a href="@url">date configuration</a>.', array(
        '@url' => url('admin/config/regional/date-time'),
      ));
      $output .= '</p>';
      break;
    case 'admin/config/user-interface/weather/places':
      $output .= '<p>';
      $output .= t('You can add new places to the module. Just paste the URL of the weather forecast on the <a href="@url">yr.no</a> website in the input field below. The easiest way to do this is to search on their website for the wanted place, click on the forecast link and copy the URL from the address bar of your browser.', array(
        '@url' => url('https://www.yr.no/'),
      ));
      $output .= '</p>';
      break;
    case 'user/%/weather':
      $output .= '<p>';
      $output .= t('You can add, edit, and delete locations from your custom weather display.');
      $output .= "\n";
      $output .= t('Please note that the display will not be shown until you configure at least one location.');
      $output .= '</p>';
      break;
  }
  return $output;
}