You are here

function reviews_permission in Reviews 7

Implements hook_permission().

File

./reviews.module, line 26
This file defines all the necessary hooks and functions to create a system for enabling and authoring content reviews on a per content type basis.

Code

function reviews_permission() {
  return array(
    'administer reviews' => array(
      'title' => t('Administer settings for the reviews system.'),
    ),
    'moderate reviews' => array(
      'title' => t('Moderate reviews'),
      'description' => t('Allow user to moderate pending reviews.'),
    ),
    'read reviews' => array(
      'title' => t('Read reviews.'),
      'description' => t('Allow user to read reviews for the node being displayed.'),
    ),
    'add reviews' => array(
      'title' => t('Leave reviews.'),
      'description' => t('Allow a user to leave a review of the node being displayed.'),
    ),
    'edit reviews' => array(
      'title' => t('Edit reviews.'),
      'description' => t('Allow a user to edit their own reviews.'),
    ),
  );
}