You are here

function rss_permissions_permission in RSS Permissions 7

Implementation of hook_permission().

File

./rss_permissions.module, line 18

Code

function rss_permissions_permission() {
  $rss_permissions = array(
    'access site RSS feed' => array(
      'title' => t('Access site RSS feed'),
    ),
  );
  if (module_exists('taxonomy')) {
    $rss_permissions['access taxonomy RSS feeds'] = array(
      'title' => t('Access taxonomy Term RSS feeds'),
      'description' => t('Only available when the Taxonomy module is enabled.'),
    );
  }
  if (module_exists('blog')) {
    $rss_permissions['access user blog RSS feeds'] = array(
      'title' => t('Access user blog RSS feeds'),
      'description' => t('For feeds typically available at blog/3/feed, for example.'),
    );
    $rss_permissions['access main blog RSS feed'] = array(
      'title' => t('Access main blog RSS feed.'),
    );
  }
  if (module_exists('aggregator')) {
    $rss_permissions['access aggregator RSS feeds'] = array(
      'title' => t('Access Aggregator RSS feeds.'),
    );
  }
  return $rss_permissions;
}