materio_administration.features.inc 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  1. <?php
  2. /**
  3. * @file
  4. * materio_administration.features.inc
  5. */
  6. /**
  7. * Implements hook_ctools_plugin_api().
  8. */
  9. function materio_administration_ctools_plugin_api($module = NULL, $api = NULL) {
  10. if ($module == "elysia_cron" && $api == "default_elysia_cron_rules") {
  11. return array("version" => "1");
  12. }
  13. if ($module == "strongarm" && $api == "strongarm") {
  14. return array("version" => "1");
  15. }
  16. }
  17. /**
  18. * Implements hook_views_api().
  19. */
  20. function materio_administration_views_api($module = NULL, $api = NULL) {
  21. return array("api" => "3.0");
  22. }
  23. /**
  24. * Implements hook_workflow_default_workflows().
  25. */
  26. function materio_administration_workflow_default_workflows() {
  27. $workflows = array();
  28. // Exported workflow: Publication
  29. $workflows['Publication'] = array(
  30. 'name' => 'Publication',
  31. 'tab_roles' => '',
  32. 'options' => 'a:4:{s:16:"comment_log_node";i:0;s:15:"comment_log_tab";i:0;s:13:"name_as_title";i:0;s:12:"watchdog_log";i:1;}',
  33. 'states' => array(
  34. 0 => array(
  35. 'state' => '(creation)',
  36. 'weight' => -50,
  37. 'sysid' => 1,
  38. 'status' => 1,
  39. 'name' => 'Publication',
  40. ),
  41. 1 => array(
  42. 'state' => 'Importé',
  43. 'weight' => 0,
  44. 'sysid' => 0,
  45. 'status' => 1,
  46. 'name' => 'Publication',
  47. ),
  48. 2 => array(
  49. 'state' => 'Édité',
  50. 'weight' => 1,
  51. 'sysid' => 0,
  52. 'status' => 1,
  53. 'name' => 'Publication',
  54. ),
  55. 3 => array(
  56. 'state' => 'Masqué',
  57. 'weight' => 2,
  58. 'sysid' => 0,
  59. 'status' => 1,
  60. 'name' => 'Publication',
  61. ),
  62. 4 => array(
  63. 'state' => 'Publié',
  64. 'weight' => 3,
  65. 'sysid' => 0,
  66. 'status' => 1,
  67. 'name' => 'Publication',
  68. ),
  69. ),
  70. 'transitions' => array(
  71. 0 => array(
  72. 'roles' => 'workflow_features_author_name,administrator,root',
  73. 'state' => '(creation)',
  74. 'target_state' => 'Masqué',
  75. ),
  76. 1 => array(
  77. 'roles' => 'workflow_features_author_name,administrator,root',
  78. 'state' => '(creation)',
  79. 'target_state' => 'Publié',
  80. ),
  81. 2 => array(
  82. 'roles' => 'root',
  83. 'state' => '(creation)',
  84. 'target_state' => 'Importé',
  85. ),
  86. 3 => array(
  87. 'roles' => 'administrator,root',
  88. 'state' => 'Importé',
  89. 'target_state' => 'Édité',
  90. ),
  91. 4 => array(
  92. 'roles' => 'workflow_features_author_name,administrator,root',
  93. 'state' => 'Importé',
  94. 'target_state' => 'Masqué',
  95. ),
  96. 5 => array(
  97. 'roles' => 'workflow_features_author_name,administrator,root',
  98. 'state' => 'Importé',
  99. 'target_state' => 'Publié',
  100. ),
  101. 6 => array(
  102. 'roles' => 'root',
  103. 'state' => 'Édité',
  104. 'target_state' => 'Importé',
  105. ),
  106. 7 => array(
  107. 'roles' => 'workflow_features_author_name,administrator,root',
  108. 'state' => 'Édité',
  109. 'target_state' => 'Masqué',
  110. ),
  111. 8 => array(
  112. 'roles' => 'workflow_features_author_name,administrator,root',
  113. 'state' => 'Édité',
  114. 'target_state' => 'Publié',
  115. ),
  116. 9 => array(
  117. 'roles' => 'workflow_features_author_name,administrator,root',
  118. 'state' => 'Masqué',
  119. 'target_state' => 'Publié',
  120. ),
  121. 10 => array(
  122. 'roles' => 'root',
  123. 'state' => 'Masqué',
  124. 'target_state' => 'Importé',
  125. ),
  126. 11 => array(
  127. 'roles' => 'workflow_features_author_name,administrator,root',
  128. 'state' => 'Masqué',
  129. 'target_state' => 'Édité',
  130. ),
  131. 12 => array(
  132. 'roles' => 'workflow_features_author_name,administrator,root',
  133. 'state' => 'Publié',
  134. 'target_state' => 'Masqué',
  135. ),
  136. 13 => array(
  137. 'roles' => 'root',
  138. 'state' => 'Publié',
  139. 'target_state' => 'Importé',
  140. ),
  141. 14 => array(
  142. 'roles' => 'workflow_features_author_name,administrator,root',
  143. 'state' => 'Publié',
  144. 'target_state' => 'Édité',
  145. ),
  146. ),
  147. 'node_types' => array(
  148. 0 => 'breve',
  149. 1 => 'company',
  150. 2 => 'didactique',
  151. 3 => 'faq',
  152. 4 => 'looping_embed_video',
  153. 5 => 'materiau',
  154. 6 => 'page',
  155. 7 => 'publication',
  156. 8 => 'simplenews',
  157. ),
  158. );
  159. return $workflows;
  160. }