You are here

function weather_permission in Weather 7

Same name and namespace in other branches
  1. 7.3 weather.module \weather_permission()
  2. 7.2 weather.module \weather_permission()

Implement hook_permission().

File

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

Code

function weather_permission() {
  return array(
    'administer custom weather block' => array(
      'title' => t('Administer custom weather block'),
      'description' => t('Allows users to configure their custom weather block.'),
    ),
    'access weather pages' => array(
      'title' => t('Access weather pages'),
      'description' => t('Allows users to access the !weather_page which provides a search for all weather stations.', array(
        '!weather_page' => l(t('weather page'), 'weather'),
      )),
    ),
  );
}