You are here

function vud_permission in Vote Up/Down 7

Same name and namespace in other branches
  1. 7.2 vud.module \vud_permission()

Implementation of hook_permission().

File

./vud.module, line 141
Implements the core voting module on top of Voting API.

Code

function vud_permission() {
  return array(
    'use vote up/down' => array(
      'title' => t('Use Vote Up/Down'),
      'description' => t('Grant users the ability to cast votes'),
    ),
    'administer vote up/down' => array(
      'title' => t('Administer Vote Up/Down'),
      'description' => t('Adjust the settings of the Vote Up/Down module'),
    ),
    'access vote up/down statistics' => array(
      'title' => t('Access Vote Up/Down Statistics'),
      'description' => t('Permission to see who is voting on what'),
    ),
    // @todo Maybe change the name adding 'own votes'.
    'reset vote up/down votes' => array(
      'title' => t('Reset Votes'),
      'description' => t('Grant the ability to undo own votes.'),
    ),
  );
}