admin.features.inc 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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: Affichage
  26. $workflows['Affichage'] = array(
  27. 'name' => 'Affichage',
  28. 'tab_roles' => 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' => 'Affichage',
  37. ),
  38. 1 => array(
  39. 'state' => 'Masqué',
  40. 'weight' => -20,
  41. 'sysid' => 0,
  42. 'status' => 1,
  43. 'name' => 'Affichage',
  44. ),
  45. 2 => array(
  46. 'state' => 'Affiché',
  47. 'weight' => -20,
  48. 'sysid' => 0,
  49. 'status' => 1,
  50. 'name' => 'Affichage',
  51. ),
  52. ),
  53. 'transitions' => array(
  54. 0 => array(
  55. 'roles' => 'workflow_features_author_name,administrator,root',
  56. 'state' => '(creation)',
  57. 'target_state' => 'Masqué',
  58. ),
  59. 1 => array(
  60. 'roles' => 'workflow_features_author_name,administrator,root',
  61. 'state' => '(creation)',
  62. 'target_state' => 'Affiché',
  63. ),
  64. 2 => array(
  65. 'roles' => 'workflow_features_author_name,administrator,root',
  66. 'state' => 'Masqué',
  67. 'target_state' => 'Affiché',
  68. ),
  69. 3 => array(
  70. 'roles' => 'workflow_features_author_name,administrator,root',
  71. 'state' => 'Affiché',
  72. 'target_state' => 'Masqué',
  73. ),
  74. ),
  75. 'node_types' => array(
  76. 0 => 'chapitre',
  77. 1 => 'page',
  78. ),
  79. );
  80. return $workflows;
  81. }