debut_media.features.user_permission.inc 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. <?php
  2. /**
  3. * @file
  4. * debut_media.features.user_permission.inc
  5. */
  6. /**
  7. * Implements hook_user_default_permissions().
  8. */
  9. function debut_media_user_default_permissions() {
  10. $permissions = array();
  11. // Exported permission: add media from remote sources
  12. $permissions['add media from remote sources'] = array(
  13. 'name' => 'add media from remote sources',
  14. 'roles' => array(
  15. 0 => 'administrator',
  16. 1 => 'contributor',
  17. 2 => 'editor',
  18. ),
  19. 'module' => 'media_internet',
  20. );
  21. // Exported permission: administer files
  22. $permissions['administer files'] = array(
  23. 'name' => 'administer files',
  24. 'roles' => array(
  25. 0 => 'administrator',
  26. 1 => 'editor',
  27. ),
  28. 'module' => 'file_entity',
  29. );
  30. // Exported permission: edit file
  31. $permissions['edit file'] = array(
  32. 'name' => 'edit file',
  33. 'roles' => array(
  34. 0 => 'administrator',
  35. 1 => 'contributor',
  36. 2 => 'editor',
  37. ),
  38. 'module' => 'file_entity',
  39. );
  40. // Exported permission: import media
  41. $permissions['import media'] = array(
  42. 'name' => 'import media',
  43. 'roles' => array(
  44. 0 => 'administrator',
  45. 1 => 'contributor',
  46. 2 => 'editor',
  47. ),
  48. 'module' => 'media',
  49. );
  50. // Exported permission: view file
  51. $permissions['view file'] = array(
  52. 'name' => 'view file',
  53. 'roles' => array(
  54. 0 => 'administrator',
  55. 1 => 'anonymous user',
  56. 2 => 'authenticated user',
  57. 3 => 'contributor',
  58. 4 => 'editor',
  59. ),
  60. 'module' => 'file_entity',
  61. );
  62. // Exported permission: view own unpublished media
  63. $permissions['view own unpublished media'] = array(
  64. 'name' => 'view own unpublished media',
  65. 'roles' => array(
  66. 0 => 'administrator',
  67. 1 => 'contributor',
  68. 2 => 'editor',
  69. ),
  70. 'module' => 'file_admin',
  71. );
  72. return $permissions;
  73. }