admin.features.inc 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. <?php
  2. /**
  3. * @file
  4. * admin.features.inc
  5. */
  6. /**
  7. * Implements hook_ctools_plugin_api().
  8. */
  9. function admin_ctools_plugin_api($module = NULL, $api = NULL) {
  10. if ($module == "strongarm" && $api == "strongarm") {
  11. return array("version" => "1");
  12. }
  13. }
  14. /**
  15. * Implements hook_views_api().
  16. */
  17. function admin_views_api($module = NULL, $api = NULL) {
  18. return array("api" => "3.0");
  19. }
  20. /**
  21. * Implements hook_workflow_default_workflows().
  22. */
  23. function admin_workflow_default_workflows() {
  24. $workflows = array();
  25. // Exported workflow: Publication
  26. $workflows['Publication'] = array(
  27. 'name' => 'Publication',
  28. 'tab_roles' => 'author,3,4',
  29. 'options' => 'a:4:{s:16:"comment_log_node";s:1:"0";s:15:"comment_log_tab";s:1:"0";s:13:"name_as_title";s:1:"0";s:12:"watchdog_log";s:1:"0";}',
  30. 'states' => array(
  31. 0 => array(
  32. 'state' => '(creation)',
  33. 'weight' => -50,
  34. 'sysid' => 1,
  35. 'status' => 1,
  36. 'name' => 'Publication',
  37. ),
  38. 1 => array(
  39. 'state' => 'Brouillon',
  40. 'weight' => -20,
  41. 'sysid' => 0,
  42. 'status' => 1,
  43. 'name' => 'Publication',
  44. ),
  45. 2 => array(
  46. 'state' => 'En attente',
  47. 'weight' => -20,
  48. 'sysid' => 0,
  49. 'status' => 1,
  50. 'name' => 'Publication',
  51. ),
  52. 3 => array(
  53. 'state' => 'Publié',
  54. 'weight' => -20,
  55. 'sysid' => 0,
  56. 'status' => 1,
  57. 'name' => 'Publication',
  58. ),
  59. ),
  60. 'transitions' => array(
  61. 0 => array(
  62. 'roles' => 'workflow_features_author_name,administrator,root',
  63. 'state' => '(creation)',
  64. 'target_state' => 'Brouillon',
  65. ),
  66. 1 => array(
  67. 'roles' => 'administrator,root',
  68. 'state' => '(creation)',
  69. 'target_state' => 'En attente',
  70. ),
  71. 2 => array(
  72. 'roles' => 'administrator,root',
  73. 'state' => '(creation)',
  74. 'target_state' => 'Publié',
  75. ),
  76. 3 => array(
  77. 'roles' => 'workflow_features_author_name,administrator,root',
  78. 'state' => 'Brouillon',
  79. 'target_state' => 'En attente',
  80. ),
  81. 4 => array(
  82. 'roles' => 'workflow_features_author_name,administrator,root',
  83. 'state' => 'En attente',
  84. 'target_state' => 'Brouillon',
  85. ),
  86. 5 => array(
  87. 'roles' => 'workflow_features_author_name,administrator,root',
  88. 'state' => 'En attente',
  89. 'target_state' => 'Publié',
  90. ),
  91. 6 => array(
  92. 'roles' => 'workflow_features_author_name,administrator,root',
  93. 'state' => 'Publié',
  94. 'target_state' => 'Brouillon',
  95. ),
  96. 7 => array(
  97. 'roles' => 'workflow_features_author_name,administrator,root',
  98. 'state' => 'Publié',
  99. 'target_state' => 'En attente',
  100. ),
  101. ),
  102. 'node_types' => array(
  103. 0 => 'documentair',
  104. 1 => 'episode',
  105. 2 => 'page',
  106. 3 => 'thematique',
  107. ),
  108. );
  109. return $workflows;
  110. }