materio_search.features.user_permission.inc 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  1. <?php
  2. /**
  3. * @file
  4. * materio_search.features.user_permission.inc
  5. */
  6. /**
  7. * Implements hook_user_default_permissions().
  8. */
  9. function materio_search_user_default_permissions() {
  10. $permissions = array();
  11. // Exported permission: 'access to materio database'.
  12. $permissions['access to materio database'] = array(
  13. 'name' => 'access to materio database',
  14. 'roles' => array(
  15. 'Adhérent' => 'Adhérent',
  16. 'Premium' => 'Premium',
  17. 'Student' => 'Student',
  18. 'Utilisateur Alpha Tester' => 'Utilisateur Alpha Tester',
  19. 'administrator' => 'administrator',
  20. 'root' => 'root',
  21. ),
  22. 'module' => 'materio_search_api',
  23. );
  24. // Exported permission: 'administer materio_search_api'.
  25. $permissions['administer materio_search_api'] = array(
  26. 'name' => 'administer materio_search_api',
  27. 'roles' => array(
  28. 'root' => 'root',
  29. ),
  30. 'module' => 'materio_search_api',
  31. );
  32. // Exported permission: 'administer search_api'.
  33. $permissions['administer search_api'] = array(
  34. 'name' => 'administer search_api',
  35. 'roles' => array(
  36. 'root' => 'root',
  37. ),
  38. 'module' => 'search_api',
  39. );
  40. // Exported permission: 'administer search_api_saved_searches'.
  41. $permissions['administer search_api_saved_searches'] = array(
  42. 'name' => 'administer search_api_saved_searches',
  43. 'roles' => array(
  44. 'root' => 'root',
  45. ),
  46. 'module' => 'search_api_saved_searches',
  47. );
  48. // Exported permission: 'create field_used_on_advanced_search'.
  49. $permissions['create field_used_on_advanced_search'] = array(
  50. 'name' => 'create field_used_on_advanced_search',
  51. 'roles' => array(
  52. 'administrator' => 'administrator',
  53. 'root' => 'root',
  54. ),
  55. 'module' => 'field_permissions',
  56. );
  57. // Exported permission: 'edit field_used_on_advanced_search'.
  58. $permissions['edit field_used_on_advanced_search'] = array(
  59. 'name' => 'edit field_used_on_advanced_search',
  60. 'roles' => array(
  61. 'administrator' => 'administrator',
  62. 'root' => 'root',
  63. ),
  64. 'module' => 'field_permissions',
  65. );
  66. // Exported permission: 'edit own field_used_on_advanced_search'.
  67. $permissions['edit own field_used_on_advanced_search'] = array(
  68. 'name' => 'edit own field_used_on_advanced_search',
  69. 'roles' => array(
  70. 'administrator' => 'administrator',
  71. 'root' => 'root',
  72. ),
  73. 'module' => 'field_permissions',
  74. );
  75. // Exported permission: 'use materio search api'.
  76. $permissions['use materio search api'] = array(
  77. 'name' => 'use materio search api',
  78. 'roles' => array(
  79. 'Adhérent' => 'Adhérent',
  80. 'Premium' => 'Premium',
  81. 'Student' => 'Student',
  82. 'administrator' => 'administrator',
  83. 'root' => 'root',
  84. ),
  85. 'module' => 'materio_search_api',
  86. );
  87. // Exported permission: 'use materio search api autocomplete'.
  88. $permissions['use materio search api autocomplete'] = array(
  89. 'name' => 'use materio search api autocomplete',
  90. 'roles' => array(
  91. 'Adhérent' => 'Adhérent',
  92. 'Premium' => 'Premium',
  93. 'Student' => 'Student',
  94. 'administrator' => 'administrator',
  95. 'root' => 'root',
  96. ),
  97. 'module' => 'materio_search_api',
  98. );
  99. // Exported permission: 'use materio search api filters'.
  100. $permissions['use materio search api filters'] = array(
  101. 'name' => 'use materio search api filters',
  102. 'roles' => array(
  103. 'Adhérent' => 'Adhérent',
  104. 'Premium' => 'Premium',
  105. 'Student' => 'Student',
  106. 'administrator' => 'administrator',
  107. 'root' => 'root',
  108. ),
  109. 'module' => 'materio_search_api',
  110. );
  111. // Exported permission: 'use materio search api for breves'.
  112. $permissions['use materio search api for breves'] = array(
  113. 'name' => 'use materio search api for breves',
  114. 'roles' => array(
  115. 'Unverified' => 'Unverified',
  116. 'Utilisateur' => 'Utilisateur',
  117. ),
  118. 'module' => 'materio_search_api',
  119. );
  120. // Exported permission: 'use materio search api viewmode selection'.
  121. $permissions['use materio search api viewmode selection'] = array(
  122. 'name' => 'use materio search api viewmode selection',
  123. 'roles' => array(
  124. 'Adhérent' => 'Adhérent',
  125. 'Premium' => 'Premium',
  126. 'Student' => 'Student',
  127. 'Unverified' => 'Unverified',
  128. 'Utilisateur' => 'Utilisateur',
  129. 'administrator' => 'administrator',
  130. 'root' => 'root',
  131. ),
  132. 'module' => 'materio_search_api',
  133. );
  134. // Exported permission: 'use search_api_saved_searches'.
  135. $permissions['use search_api_saved_searches'] = array(
  136. 'name' => 'use search_api_saved_searches',
  137. 'roles' => array(
  138. 'root' => 'root',
  139. ),
  140. 'module' => 'search_api_saved_searches',
  141. );
  142. // Exported permission: 'view field_used_on_advanced_search'.
  143. $permissions['view field_used_on_advanced_search'] = array(
  144. 'name' => 'view field_used_on_advanced_search',
  145. 'roles' => array(
  146. 'administrator' => 'administrator',
  147. 'root' => 'root',
  148. ),
  149. 'module' => 'field_permissions',
  150. );
  151. // Exported permission: 'view own field_used_on_advanced_search'.
  152. $permissions['view own field_used_on_advanced_search'] = array(
  153. 'name' => 'view own field_used_on_advanced_search',
  154. 'roles' => array(
  155. 'administrator' => 'administrator',
  156. 'root' => 'root',
  157. ),
  158. 'module' => 'field_permissions',
  159. );
  160. return $permissions;
  161. }