mailing.features.user_permission.inc 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202
  1. <?php
  2. /**
  3. * @file
  4. * mailing.features.user_permission.inc
  5. */
  6. /**
  7. * Implements hook_user_default_permissions().
  8. */
  9. function mailing_user_default_permissions() {
  10. $permissions = array();
  11. // Exported permission: 'administer mailgun'.
  12. $permissions['administer mailgun'] = array(
  13. 'name' => 'administer mailgun',
  14. 'roles' => array(
  15. 'root' => 'root',
  16. ),
  17. 'module' => 'mailgun',
  18. );
  19. // Exported permission: 'administer newsletters'.
  20. $permissions['administer newsletters'] = array(
  21. 'name' => 'administer newsletters',
  22. 'roles' => array(
  23. 'administrator' => 'administrator',
  24. 'root' => 'root',
  25. ),
  26. 'module' => 'simplenews',
  27. );
  28. // Exported permission: 'administer simplenews settings'.
  29. $permissions['administer simplenews settings'] = array(
  30. 'name' => 'administer simplenews settings',
  31. 'roles' => array(
  32. 'root' => 'root',
  33. ),
  34. 'module' => 'simplenews',
  35. );
  36. // Exported permission: 'administer simplenews subscriptions'.
  37. $permissions['administer simplenews subscriptions'] = array(
  38. 'name' => 'administer simplenews subscriptions',
  39. 'roles' => array(
  40. 'administrator' => 'administrator',
  41. 'root' => 'root',
  42. ),
  43. 'module' => 'simplenews',
  44. );
  45. // Exported permission: 'create simplenews content'.
  46. $permissions['create simplenews content'] = array(
  47. 'name' => 'create simplenews content',
  48. 'roles' => array(
  49. 'administrator' => 'administrator',
  50. 'root' => 'root',
  51. ),
  52. 'module' => 'node',
  53. );
  54. // Exported permission: 'delete any simplenews content'.
  55. $permissions['delete any simplenews content'] = array(
  56. 'name' => 'delete any simplenews content',
  57. 'roles' => array(
  58. 'administrator' => 'administrator',
  59. 'root' => 'root',
  60. ),
  61. 'module' => 'node',
  62. );
  63. // Exported permission: 'delete own simplenews content'.
  64. $permissions['delete own simplenews content'] = array(
  65. 'name' => 'delete own simplenews content',
  66. 'roles' => array(
  67. 'administrator' => 'administrator',
  68. 'root' => 'root',
  69. ),
  70. 'module' => 'node',
  71. );
  72. // Exported permission: 'edit any simplenews content'.
  73. $permissions['edit any simplenews content'] = array(
  74. 'name' => 'edit any simplenews content',
  75. 'roles' => array(
  76. 'administrator' => 'administrator',
  77. 'root' => 'root',
  78. ),
  79. 'module' => 'node',
  80. );
  81. // Exported permission: 'edit own simplenews content'.
  82. $permissions['edit own simplenews content'] = array(
  83. 'name' => 'edit own simplenews content',
  84. 'roles' => array(
  85. 'administrator' => 'administrator',
  86. 'root' => 'root',
  87. ),
  88. 'module' => 'node',
  89. );
  90. // Exported permission: 'enter simplenews revision log entry'.
  91. $permissions['enter simplenews revision log entry'] = array(
  92. 'name' => 'enter simplenews revision log entry',
  93. 'roles' => array(
  94. 'root' => 'root',
  95. ),
  96. 'module' => 'override_node_options',
  97. );
  98. // Exported permission: 'override simplenews authored by option'.
  99. $permissions['override simplenews authored by option'] = array(
  100. 'name' => 'override simplenews authored by option',
  101. 'roles' => array(
  102. 'root' => 'root',
  103. ),
  104. 'module' => 'override_node_options',
  105. );
  106. // Exported permission: 'override simplenews authored on option'.
  107. $permissions['override simplenews authored on option'] = array(
  108. 'name' => 'override simplenews authored on option',
  109. 'roles' => array(
  110. 'root' => 'root',
  111. ),
  112. 'module' => 'override_node_options',
  113. );
  114. // Exported permission: 'override simplenews promote to front page option'.
  115. $permissions['override simplenews promote to front page option'] = array(
  116. 'name' => 'override simplenews promote to front page option',
  117. 'roles' => array(
  118. 'root' => 'root',
  119. ),
  120. 'module' => 'override_node_options',
  121. );
  122. // Exported permission: 'override simplenews published option'.
  123. $permissions['override simplenews published option'] = array(
  124. 'name' => 'override simplenews published option',
  125. 'roles' => array(
  126. 'root' => 'root',
  127. ),
  128. 'module' => 'override_node_options',
  129. );
  130. // Exported permission: 'override simplenews revision option'.
  131. $permissions['override simplenews revision option'] = array(
  132. 'name' => 'override simplenews revision option',
  133. 'roles' => array(
  134. 'root' => 'root',
  135. ),
  136. 'module' => 'override_node_options',
  137. );
  138. // Exported permission: 'override simplenews sticky option'.
  139. $permissions['override simplenews sticky option'] = array(
  140. 'name' => 'override simplenews sticky option',
  141. 'roles' => array(
  142. 'root' => 'root',
  143. ),
  144. 'module' => 'override_node_options',
  145. );
  146. // Exported permission: 'overview scheduled newsletters'.
  147. $permissions['overview scheduled newsletters'] = array(
  148. 'name' => 'overview scheduled newsletters',
  149. 'roles' => array(
  150. 'administrator' => 'administrator',
  151. 'root' => 'root',
  152. ),
  153. 'module' => 'simplenews_scheduler',
  154. );
  155. // Exported permission: 'send scheduled newsletters'.
  156. $permissions['send scheduled newsletters'] = array(
  157. 'name' => 'send scheduled newsletters',
  158. 'roles' => array(
  159. 'administrator' => 'administrator',
  160. 'root' => 'root',
  161. ),
  162. 'module' => 'simplenews_scheduler',
  163. );
  164. // Exported permission: 'show simplenews title'.
  165. $permissions['show simplenews title'] = array(
  166. 'name' => 'show simplenews title',
  167. 'roles' => array(
  168. 'Adhérent' => 'Adhérent',
  169. 'Contact opérationnel' => 'Contact opérationnel',
  170. 'Premium' => 'Premium',
  171. 'Student' => 'Student',
  172. 'Unverified' => 'Unverified',
  173. 'Utilisateur' => 'Utilisateur',
  174. 'administrator' => 'administrator',
  175. 'anonymous user' => 'anonymous user',
  176. 'root' => 'root',
  177. ),
  178. 'module' => 'materio_page_title',
  179. );
  180. return $permissions;
  181. }