123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081 |
- <?php
- /**
- * @file
- * debut_media.features.user_permission.inc
- */
- /**
- * Implements hook_user_default_permissions().
- */
- function debut_media_user_default_permissions() {
- $permissions = array();
- // Exported permission: add media from remote sources
- $permissions['add media from remote sources'] = array(
- 'name' => 'add media from remote sources',
- 'roles' => array(
- 0 => 'administrator',
- 1 => 'contributor',
- 2 => 'editor',
- ),
- 'module' => 'media_internet',
- );
- // Exported permission: administer files
- $permissions['administer files'] = array(
- 'name' => 'administer files',
- 'roles' => array(
- 0 => 'administrator',
- 1 => 'editor',
- ),
- 'module' => 'file_entity',
- );
- // Exported permission: edit file
- $permissions['edit file'] = array(
- 'name' => 'edit file',
- 'roles' => array(
- 0 => 'administrator',
- 1 => 'contributor',
- 2 => 'editor',
- ),
- 'module' => 'file_entity',
- );
- // Exported permission: import media
- $permissions['import media'] = array(
- 'name' => 'import media',
- 'roles' => array(
- 0 => 'administrator',
- 1 => 'contributor',
- 2 => 'editor',
- ),
- 'module' => 'media',
- );
- // Exported permission: view file
- $permissions['view file'] = array(
- 'name' => 'view file',
- 'roles' => array(
- 0 => 'administrator',
- 1 => 'anonymous user',
- 2 => 'authenticated user',
- 3 => 'contributor',
- 4 => 'editor',
- ),
- 'module' => 'file_entity',
- );
- // Exported permission: view own unpublished media
- $permissions['view own unpublished media'] = array(
- 'name' => 'view own unpublished media',
- 'roles' => array(
- 0 => 'administrator',
- 1 => 'contributor',
- 2 => 'editor',
- ),
- 'module' => 'file_admin',
- );
- return $permissions;
- }
|