You are here

function imagepicker_permission in Image Picker 7

Implement hook_perm().

File

./imagepicker.module, line 40
@author Bob Hutchinson http://drupal.org/user/52366 @copyright GNU GPL

Code

function imagepicker_permission() {
  return array(
    'administer imagepicker' => array(
      'title' => t('Administer Imagepicker'),
      'description' => t('Access the Imagepicker administration pages.'),
    ),
    'use imagepicker' => array(
      'title' => t('Use Imagepicker'),
      'description' => t('Allow roles to use Imagepicker.'),
    ),
    'access own imagepicker' => array(
      'title' => t('Access own Imagepicker'),
      'description' => t('Allow users to have My Imagepicker in My account.'),
    ),
    'use public imagepicker' => array(
      'title' => t('Use public imagepicker'),
      'description' => t('Allow the use of public groups.'),
    ),
    'create public imagepicker groups' => array(
      'title' => t('Create public groups'),
      'description' => t('Allow the creation of public groups.'),
    ),
  );
}