12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394 |
- <?php
- /**
- * @file
- * admin.features.workflow_access.inc
- */
- /**
- * Implements hook_workflow_access_features_default_settings().
- */
- function admin_workflow_access_features_default_settings() {
- $workflows = array();
- $workflows['Publication'] = array();
- $workflows['Publication']['Brouillon'] = array();
- $workflows['Publication']['Brouillon']['administrator'] = array(
- 'grant_view' => 1,
- 'grant_update' => 1,
- 'grant_delete' => 1,
- );
- $workflows['Publication']['Brouillon']['root'] = array(
- 'grant_view' => 1,
- 'grant_update' => 1,
- 'grant_delete' => 1,
- );
- $workflows['Publication']['Brouillon']['workflow_features_author_name'] = array(
- 'grant_view' => 1,
- 'grant_update' => 1,
- 'grant_delete' => 1,
- );
- $workflows['Publication']['Brouillon']['anonymous user'] = array(
- 'grant_view' => 0,
- 'grant_update' => 0,
- 'grant_delete' => 0,
- );
- $workflows['Publication']['Brouillon']['authenticated user'] = array(
- 'grant_view' => 0,
- 'grant_update' => 0,
- 'grant_delete' => 0,
- );
- $workflows['Publication']['En attente'] = array();
- $workflows['Publication']['En attente']['anonymous user'] = array(
- 'grant_view' => 1,
- 'grant_update' => 0,
- 'grant_delete' => 0,
- );
- $workflows['Publication']['En attente']['authenticated user'] = array(
- 'grant_view' => 1,
- 'grant_update' => 0,
- 'grant_delete' => 0,
- );
- $workflows['Publication']['En attente']['administrator'] = array(
- 'grant_view' => 0,
- 'grant_update' => 1,
- 'grant_delete' => 1,
- );
- $workflows['Publication']['En attente']['root'] = array(
- 'grant_view' => 0,
- 'grant_update' => 1,
- 'grant_delete' => 1,
- );
- $workflows['Publication']['En attente']['workflow_features_author_name'] = array(
- 'grant_view' => 0,
- 'grant_update' => 1,
- 'grant_delete' => 1,
- );
- $workflows['Publication']['Publié'] = array();
- $workflows['Publication']['Publié']['anonymous user'] = array(
- 'grant_view' => 1,
- 'grant_update' => 0,
- 'grant_delete' => 0,
- );
- $workflows['Publication']['Publié']['authenticated user'] = array(
- 'grant_view' => 1,
- 'grant_update' => 0,
- 'grant_delete' => 0,
- );
- $workflows['Publication']['Publié']['administrator'] = array(
- 'grant_view' => 0,
- 'grant_update' => 1,
- 'grant_delete' => 0,
- );
- $workflows['Publication']['Publié']['root'] = array(
- 'grant_view' => 0,
- 'grant_update' => 1,
- 'grant_delete' => 1,
- );
- $workflows['Publication']['Publié']['workflow_features_author_name'] = array(
- 'grant_view' => 0,
- 'grant_update' => 1,
- 'grant_delete' => 0,
- );
- return $workflows;
- }
|