admin.features.workflow_access.inc 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. <?php
  2. /**
  3. * @file
  4. * admin.features.workflow_access.inc
  5. */
  6. /**
  7. * Implements hook_workflow_access_features_default_settings().
  8. */
  9. function admin_workflow_access_features_default_settings() {
  10. $workflows = array();
  11. $workflows['Publication'] = array();
  12. $workflows['Publication']['Brouillon'] = array();
  13. $workflows['Publication']['Brouillon']['administrator'] = array(
  14. 'grant_view' => 1,
  15. 'grant_update' => 1,
  16. 'grant_delete' => 1,
  17. );
  18. $workflows['Publication']['Brouillon']['root'] = array(
  19. 'grant_view' => 1,
  20. 'grant_update' => 1,
  21. 'grant_delete' => 1,
  22. );
  23. $workflows['Publication']['Brouillon']['workflow_features_author_name'] = array(
  24. 'grant_view' => 1,
  25. 'grant_update' => 1,
  26. 'grant_delete' => 1,
  27. );
  28. $workflows['Publication']['Brouillon']['anonymous user'] = array(
  29. 'grant_view' => 0,
  30. 'grant_update' => 0,
  31. 'grant_delete' => 0,
  32. );
  33. $workflows['Publication']['Brouillon']['authenticated user'] = array(
  34. 'grant_view' => 0,
  35. 'grant_update' => 0,
  36. 'grant_delete' => 0,
  37. );
  38. $workflows['Publication']['En attente'] = array();
  39. $workflows['Publication']['En attente']['anonymous user'] = array(
  40. 'grant_view' => 1,
  41. 'grant_update' => 0,
  42. 'grant_delete' => 0,
  43. );
  44. $workflows['Publication']['En attente']['authenticated user'] = array(
  45. 'grant_view' => 1,
  46. 'grant_update' => 0,
  47. 'grant_delete' => 0,
  48. );
  49. $workflows['Publication']['En attente']['administrator'] = array(
  50. 'grant_view' => 0,
  51. 'grant_update' => 1,
  52. 'grant_delete' => 1,
  53. );
  54. $workflows['Publication']['En attente']['root'] = array(
  55. 'grant_view' => 0,
  56. 'grant_update' => 1,
  57. 'grant_delete' => 1,
  58. );
  59. $workflows['Publication']['En attente']['workflow_features_author_name'] = array(
  60. 'grant_view' => 0,
  61. 'grant_update' => 1,
  62. 'grant_delete' => 1,
  63. );
  64. $workflows['Publication']['Publié'] = array();
  65. $workflows['Publication']['Publié']['anonymous user'] = array(
  66. 'grant_view' => 1,
  67. 'grant_update' => 0,
  68. 'grant_delete' => 0,
  69. );
  70. $workflows['Publication']['Publié']['authenticated user'] = array(
  71. 'grant_view' => 1,
  72. 'grant_update' => 0,
  73. 'grant_delete' => 0,
  74. );
  75. $workflows['Publication']['Publié']['administrator'] = array(
  76. 'grant_view' => 0,
  77. 'grant_update' => 1,
  78. 'grant_delete' => 0,
  79. );
  80. $workflows['Publication']['Publié']['root'] = array(
  81. 'grant_view' => 0,
  82. 'grant_update' => 1,
  83. 'grant_delete' => 1,
  84. );
  85. $workflows['Publication']['Publié']['workflow_features_author_name'] = array(
  86. 'grant_view' => 0,
  87. 'grant_update' => 1,
  88. 'grant_delete' => 0,
  89. );
  90. return $workflows;
  91. }