You are here

function weather_help in Weather 5.6

Same name and namespace in other branches
  1. 8 weather.module \weather_help()
  2. 6.5 weather.module \weather_help()
  3. 7.3 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()

Implementation of hook_help().

File

./weather.module, line 161
Display <acronym title="METeorological Aerodrome Report">METAR</acronym> weather data from anywhere in the world

Code

function weather_help($section) {
  global $user;
  $output = '';
  switch ($section) {
    case 'admin/settings/weather':
      $output .= '<p>';
      $output .= t('You can add, edit, and delete locations from the system weather block. Moreover, you can specify default values for newly created locations.');
      $output .= '</p>';
      break;
    case 'user/' . $user->uid . '/weather':
      $output = '<p>';
      $output .= t('You can add, edit, and delete locations from your custom weather block.');
      $output .= "\n";
      $output .= t('Please note that the block will not be shown until you configure at least one location.');
      $output .= '</p>';
      break;
  }
  return $output;
}