admin.features.inc 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. <?php
  2. /**
  3. * @file
  4. * admin.features.inc
  5. */
  6. /**
  7. * Implements hook_default_Workflow().
  8. */
  9. function admin_default_Workflow() {
  10. $workflows = array();
  11. // Exported workflow: 'Publication'
  12. $workflows['Publication'] = entity_import('Workflow', '{
  13. "name" : "Publication",
  14. "tab_roles" : { "-1" : "-1" },
  15. "options" : {
  16. "comment_log_node" : "0",
  17. "comment_log_tab" : "0",
  18. "name_as_title" : "0",
  19. "watchdog_log" : "0"
  20. },
  21. "states" : {
  22. "(creation)" : {"weight":"-50","sysid":"1","state":"(creation)","status":"1","name":"(creation)"},
  23. "brouillon" : {"weight":"-19","sysid":"0","state":"Brouillon","status":"1","name":"brouillon"},
  24. "en_attente" : {"weight":"-18","sysid":"0","state":"En attente","status":"1","name":"en_attente"},
  25. "publie" : {"weight":"-17","sysid":"0","state":"Publi\\u00e9","status":"1","name":"publie"}
  26. },
  27. "transitions" : {
  28. "_creation_to_brouillon" : {"roles":{"-1":-1,"3":3,"4":4},"name":"_creation_to_brouillon","label":"","start_state":"(creation)","end_state":"brouillon"},
  29. "_creation_to_en_attente" : {"roles":{"3":3,"4":4},"name":"_creation_to_en_attente","label":"","start_state":"(creation)","end_state":"en_attente"},
  30. "_creation_to_publie" : {"roles":{"3":3,"4":4},"name":"_creation_to_publie","label":"","start_state":"(creation)","end_state":"publie"},
  31. "brouillon_to_brouillon" : {"roles":{"-1":-1,"3":3,"4":4},"name":"brouillon_to_brouillon","label":"","start_state":"brouillon","end_state":"brouillon"},
  32. "brouillon_to_en_attente" : {"roles":{"3":3,"4":4},"name":"brouillon_to_en_attente","label":"","start_state":"brouillon","end_state":"en_attente"},
  33. "brouillon_to_publie" : {"roles":{"3":3,"4":4},"name":"brouillon_to_publie","label":"","start_state":"brouillon","end_state":"publie"},
  34. "en_attente_to_brouillon" : {"roles":{"-1":-1,"3":3,"4":4},"name":"en_attente_to_brouillon","label":"","start_state":"en_attente","end_state":"brouillon"},
  35. "en_attente_to_en_attente" : {"roles":{"-1":-1,"3":3,"4":4},"name":"en_attente_to_en_attente","label":"","start_state":"en_attente","end_state":"en_attente"},
  36. "en_attente_to_publie" : {"roles":{"3":3,"4":4},"name":"en_attente_to_publie","label":"","start_state":"en_attente","end_state":"publie"},
  37. "publie_to_brouillon" : {"roles":{"3":3,"4":4},"name":"publie_to_brouillon","label":"","start_state":"publie","end_state":"brouillon"},
  38. "publie_to_en_attente" : {"roles":{"3":3,"4":4},"name":"publie_to_en_attente","label":"","start_state":"publie","end_state":"en_attente"},
  39. "publie_to_publie" : {"roles":{"-1":-1,"3":3,"4":4},"name":"publie_to_publie","label":"","start_state":"publie","end_state":"publie"}
  40. },
  41. "label" : "Publication",
  42. "typeMap" : [ "documentair", "episode", "page", "thematique" ],
  43. "system_roles" : {
  44. "-1" : "(auteur)",
  45. "1" : "utilisateur anonyme",
  46. "2" : "utilisateur authentifi\\u00e9",
  47. "3" : "administrateur",
  48. "4" : "racine"
  49. }
  50. }');
  51. return $workflows;
  52. }
  53. /**
  54. * Implements hook_ctools_plugin_api().
  55. */
  56. function admin_ctools_plugin_api($module = NULL, $api = NULL) {
  57. if ($module == "strongarm" && $api == "strongarm") {
  58. return array("version" => "1");
  59. }
  60. }
  61. /**
  62. * Implements hook_views_api().
  63. */
  64. function admin_views_api($module = NULL, $api = NULL) {
  65. return array("api" => "3.0");
  66. }