admin.features.inc 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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":"-20","sysid":"0","state":"Brouillon","status":"1","name":"brouillon"},
  24. "en_attente" : {"weight":"-20","sysid":"0","state":"En attente","status":"1","name":"en_attente"},
  25. "publie" : {"weight":"-20","sysid":"0","state":"Publi\\u00e9","status":"1","name":"publie"}
  26. },
  27. "transitions" : {
  28. "_creation_to_brouillon" : {"roles":{"-1":"-1"},"name":"_creation_to_brouillon","label":"","start_state":"(creation)","end_state":"brouillon"},
  29. "_creation_to_en_attente" : {"roles":[],"name":"_creation_to_en_attente","label":"","start_state":"(creation)","end_state":"en_attente"},
  30. "_creation_to_publie" : {"roles":[],"name":"_creation_to_publie","label":"","start_state":"(creation)","end_state":"publie"},
  31. "brouillon_to_en_attente" : {"roles":{"-1":"-1"},"name":"brouillon_to_en_attente","label":"","start_state":"brouillon","end_state":"en_attente"},
  32. "en_attente_to_brouillon" : {"roles":{"-1":"-1"},"name":"en_attente_to_brouillon","label":"","start_state":"en_attente","end_state":"brouillon"},
  33. "en_attente_to_publie" : {"roles":{"-1":"-1"},"name":"en_attente_to_publie","label":"","start_state":"en_attente","end_state":"publie"},
  34. "publie_to_brouillon" : {"roles":{"-1":"-1"},"name":"publie_to_brouillon","label":"","start_state":"publie","end_state":"brouillon"},
  35. "publie_to_en_attente" : {"roles":{"-1":"-1"},"name":"publie_to_en_attente","label":"","start_state":"publie","end_state":"en_attente"}
  36. },
  37. "label" : "Publication",
  38. "typeMap" : [ "documentair", "episode", "page", "thematique" ],
  39. "system_roles" : {
  40. "-1" : "(auteur)",
  41. "1" : "utilisateur anonyme",
  42. "2" : "utilisateur authentifi\\u00e9",
  43. "3" : "administrateur",
  44. "4" : "racine"
  45. }
  46. }');
  47. return $workflows;
  48. }
  49. /**
  50. * Implements hook_ctools_plugin_api().
  51. */
  52. function admin_ctools_plugin_api($module = NULL, $api = NULL) {
  53. if ($module == "strongarm" && $api == "strongarm") {
  54. return array("version" => "1");
  55. }
  56. }
  57. /**
  58. * Implements hook_views_api().
  59. */
  60. function admin_views_api($module = NULL, $api = NULL) {
  61. return array("api" => "3.0");
  62. }