You are here

function node_gallery_api_permission in Node Gallery 7

Implements hook_permission()

File

./node_gallery_api.module, line 212
Node Gallery module.

Code

function node_gallery_api_permission() {
  return array(
    NODE_GALLERY_PERM_ADMIN_GALLERY => array(
      'title' => t('Administer Node Gallery Settings'),
      'description' => t('Create Node Gallery relationship types and administer settings.'),
    ),
    NODE_GALLERY_PERM_UPLOAD_TO_ALL_GALLERIES => array(
      'title' => t('Upload to All Galleries'),
      'description' => t('Upload to any gallery, regardless if they were the creator'),
    ),
  );
}