materio_search.features.user_permission.inc 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  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: 'administer materio_search_api'.
  12. $permissions['administer materio_search_api'] = array(
  13. 'name' => 'administer materio_search_api',
  14. 'roles' => array(
  15. 'root' => 'root',
  16. ),
  17. 'module' => 'materio_search_api',
  18. );
  19. // Exported permission: 'administer search_api'.
  20. $permissions['administer search_api'] = array(
  21. 'name' => 'administer search_api',
  22. 'roles' => array(
  23. 'root' => 'root',
  24. ),
  25. 'module' => 'search_api',
  26. );
  27. // Exported permission: 'administer search_api_saved_searches'.
  28. $permissions['administer search_api_saved_searches'] = array(
  29. 'name' => 'administer search_api_saved_searches',
  30. 'roles' => array(
  31. 'root' => 'root',
  32. ),
  33. 'module' => 'search_api_saved_searches',
  34. );
  35. // Exported permission: 'create field_used_on_advanced_search'.
  36. $permissions['create field_used_on_advanced_search'] = array(
  37. 'name' => 'create field_used_on_advanced_search',
  38. 'roles' => array(
  39. 'administrator' => 'administrator',
  40. 'root' => 'root',
  41. ),
  42. 'module' => 'field_permissions',
  43. );
  44. // Exported permission: 'edit field_used_on_advanced_search'.
  45. $permissions['edit field_used_on_advanced_search'] = array(
  46. 'name' => 'edit field_used_on_advanced_search',
  47. 'roles' => array(
  48. 'administrator' => 'administrator',
  49. 'root' => 'root',
  50. ),
  51. 'module' => 'field_permissions',
  52. );
  53. // Exported permission: 'edit own field_used_on_advanced_search'.
  54. $permissions['edit own field_used_on_advanced_search'] = array(
  55. 'name' => 'edit own field_used_on_advanced_search',
  56. 'roles' => array(
  57. 'administrator' => 'administrator',
  58. 'root' => 'root',
  59. ),
  60. 'module' => 'field_permissions',
  61. );
  62. // Exported permission: 'use materio search api'.
  63. $permissions['use materio search api'] = array(
  64. 'name' => 'use materio search api',
  65. 'roles' => array(
  66. 'Adhérent' => 'Adhérent',
  67. 'Premium' => 'Premium',
  68. 'Student' => 'Student',
  69. 'administrator' => 'administrator',
  70. 'root' => 'root',
  71. ),
  72. 'module' => 'materio_search_api',
  73. );
  74. // Exported permission: 'use materio search api autocomplete'.
  75. $permissions['use materio search api autocomplete'] = array(
  76. 'name' => 'use materio search api autocomplete',
  77. 'roles' => array(
  78. 'Adhérent' => 'Adhérent',
  79. 'Premium' => 'Premium',
  80. 'Student' => 'Student',
  81. 'administrator' => 'administrator',
  82. 'root' => 'root',
  83. ),
  84. 'module' => 'materio_search_api',
  85. );
  86. // Exported permission: 'use materio search api filters'.
  87. $permissions['use materio search api filters'] = array(
  88. 'name' => 'use materio search api filters',
  89. 'roles' => array(
  90. 'Adhérent' => 'Adhérent',
  91. 'Premium' => 'Premium',
  92. 'Student' => 'Student',
  93. 'administrator' => 'administrator',
  94. 'root' => 'root',
  95. ),
  96. 'module' => 'materio_search_api',
  97. );
  98. // Exported permission: 'use materio search api for breves'.
  99. $permissions['use materio search api for breves'] = array(
  100. 'name' => 'use materio search api for breves',
  101. 'roles' => array(
  102. 'Unverified' => 'Unverified',
  103. 'Utilisateur' => 'Utilisateur',
  104. ),
  105. 'module' => 'materio_search_api',
  106. );
  107. // Exported permission: 'use materio search api viewmode selection'.
  108. $permissions['use materio search api viewmode selection'] = array(
  109. 'name' => 'use materio search api viewmode selection',
  110. 'roles' => array(
  111. 'Adhérent' => 'Adhérent',
  112. 'Premium' => 'Premium',
  113. 'Student' => 'Student',
  114. 'Unverified' => 'Unverified',
  115. 'Utilisateur' => 'Utilisateur',
  116. 'administrator' => 'administrator',
  117. 'root' => 'root',
  118. ),
  119. 'module' => 'materio_search_api',
  120. );
  121. // Exported permission: 'use search_api_saved_searches'.
  122. $permissions['use search_api_saved_searches'] = array(
  123. 'name' => 'use search_api_saved_searches',
  124. 'roles' => array(
  125. 'root' => 'root',
  126. ),
  127. 'module' => 'search_api_saved_searches',
  128. );
  129. // Exported permission: 'view field_used_on_advanced_search'.
  130. $permissions['view field_used_on_advanced_search'] = array(
  131. 'name' => 'view field_used_on_advanced_search',
  132. 'roles' => array(
  133. 'administrator' => 'administrator',
  134. 'root' => 'root',
  135. ),
  136. 'module' => 'field_permissions',
  137. );
  138. // Exported permission: 'view own field_used_on_advanced_search'.
  139. $permissions['view own field_used_on_advanced_search'] = array(
  140. 'name' => 'view own field_used_on_advanced_search',
  141. 'roles' => array(
  142. 'administrator' => 'administrator',
  143. 'root' => 'root',
  144. ),
  145. 'module' => 'field_permissions',
  146. );
  147. return $permissions;
  148. }