admin.features.workflow_access.inc 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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['Affichage'] = array();
  12. $workflows['Affichage']['Masqué'] = array();
  13. $workflows['Affichage']['Masqué']['administrator'] = array(
  14. 'grant_view' => 1,
  15. 'grant_update' => 1,
  16. 'grant_delete' => 1,
  17. );
  18. $workflows['Affichage']['Masqué']['root'] = array(
  19. 'grant_view' => 1,
  20. 'grant_update' => 1,
  21. 'grant_delete' => 1,
  22. );
  23. $workflows['Affichage']['Masqué']['anonymous user'] = array(
  24. 'grant_view' => 0,
  25. 'grant_update' => 0,
  26. 'grant_delete' => 0,
  27. );
  28. $workflows['Affichage']['Masqué']['authenticated user'] = array(
  29. 'grant_view' => 0,
  30. 'grant_update' => 0,
  31. 'grant_delete' => 0,
  32. );
  33. $workflows['Affichage']['Masqué']['workflow_features_author_name'] = array(
  34. 'grant_view' => 0,
  35. 'grant_update' => 0,
  36. 'grant_delete' => 0,
  37. );
  38. $workflows['Affichage']['Affiché'] = array();
  39. $workflows['Affichage']['Affiché']['anonymous user'] = array(
  40. 'grant_view' => 1,
  41. 'grant_update' => 0,
  42. 'grant_delete' => 0,
  43. );
  44. $workflows['Affichage']['Affiché']['authenticated user'] = array(
  45. 'grant_view' => 1,
  46. 'grant_update' => 0,
  47. 'grant_delete' => 0,
  48. );
  49. $workflows['Affichage']['Affiché']['administrator'] = array(
  50. 'grant_view' => 0,
  51. 'grant_update' => 1,
  52. 'grant_delete' => 1,
  53. );
  54. $workflows['Affichage']['Affiché']['root'] = array(
  55. 'grant_view' => 0,
  56. 'grant_update' => 1,
  57. 'grant_delete' => 1,
  58. );
  59. $workflows['Affichage']['Affiché']['workflow_features_author_name'] = array(
  60. 'grant_view' => 0,
  61. 'grant_update' => 0,
  62. 'grant_delete' => 0,
  63. );
  64. return $workflows;
  65. }