updated workflow module to last dev
This commit is contained in:
@@ -4,6 +4,52 @@
|
||||
* admin.features.inc
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_default_Workflow().
|
||||
*/
|
||||
function admin_default_Workflow() {
|
||||
$workflows = array();
|
||||
|
||||
// Exported workflow: 'Publication'
|
||||
$workflows['Publication'] = entity_import('Workflow', '{
|
||||
"name" : "Publication",
|
||||
"tab_roles" : { "-1" : "-1" },
|
||||
"options" : {
|
||||
"comment_log_node" : "0",
|
||||
"comment_log_tab" : "0",
|
||||
"name_as_title" : "0",
|
||||
"watchdog_log" : "0"
|
||||
},
|
||||
"states" : {
|
||||
"(creation)" : {"weight":"-50","sysid":"1","state":"(creation)","status":"1","name":"(creation)"},
|
||||
"brouillon" : {"weight":"-20","sysid":"0","state":"Brouillon","status":"1","name":"brouillon"},
|
||||
"en_attente" : {"weight":"-20","sysid":"0","state":"En attente","status":"1","name":"en_attente"},
|
||||
"publi\\u00e9" : {"weight":"-20","sysid":"0","state":"Publi\\u00e9","status":"1","name":"publi\\u00e9"}
|
||||
},
|
||||
"transitions" : {
|
||||
"_creation_to_brouillon" : {"roles":{"-1":"-1"},"name":"_creation_to_brouillon","label":"","start_state":"(creation)","end_state":"brouillon"},
|
||||
"_creation_to_en_attente" : {"roles":[],"name":"_creation_to_en_attente","label":"","start_state":"(creation)","end_state":"en_attente"},
|
||||
"_creation_to_publi\\u00e9" : {"roles":[],"name":"_creation_to_publi\\u00e9","label":"","start_state":"(creation)","end_state":"publi\\u00e9"},
|
||||
"brouillon_to_en_attente" : {"roles":{"-1":"-1"},"name":"brouillon_to_en_attente","label":"","start_state":"brouillon","end_state":"en_attente"},
|
||||
"en_attente_to_brouillon" : {"roles":{"-1":"-1"},"name":"en_attente_to_brouillon","label":"","start_state":"en_attente","end_state":"brouillon"},
|
||||
"en_attente_to_publi\\u00e9" : {"roles":{"-1":"-1"},"name":"en_attente_to_publi\\u00e9","label":"","start_state":"en_attente","end_state":"publi\\u00e9"},
|
||||
"publi\\u00e9_to_brouillon" : {"roles":{"-1":"-1"},"name":"publi\\u00e9_to_brouillon","label":"","start_state":"publi\\u00e9","end_state":"brouillon"},
|
||||
"publi\\u00e9_to_en_attente" : {"roles":{"-1":"-1"},"name":"publi\\u00e9_to_en_attente","label":"","start_state":"publi\\u00e9","end_state":"en_attente"}
|
||||
},
|
||||
"label" : "Publication",
|
||||
"typeMap" : [ "documentair", "episode", "page", "thematique" ],
|
||||
"system_roles" : {
|
||||
"-1" : "(author)",
|
||||
"1" : "anonymous user",
|
||||
"2" : "authenticated user",
|
||||
"3" : "administrator",
|
||||
"4" : "root"
|
||||
}
|
||||
}');
|
||||
|
||||
return $workflows;
|
||||
}
|
||||
|
||||
/**
|
||||
* Implements hook_ctools_plugin_api().
|
||||
*/
|
||||
@@ -19,97 +65,3 @@ function admin_ctools_plugin_api($module = NULL, $api = NULL) {
|
||||
function admin_views_api($module = NULL, $api = NULL) {
|
||||
return array("api" => "3.0");
|
||||
}
|
||||
|
||||
/**
|
||||
* Implements hook_workflow_default_workflows().
|
||||
*/
|
||||
function admin_workflow_default_workflows() {
|
||||
$workflows = array();
|
||||
|
||||
// Exported workflow: Publication
|
||||
$workflows['Publication'] = array(
|
||||
'name' => 'Publication',
|
||||
'tab_roles' => 'author,3,4',
|
||||
'options' => 'a:4:{s:16:"comment_log_node";s:1:"0";s:15:"comment_log_tab";s:1:"0";s:13:"name_as_title";s:1:"0";s:12:"watchdog_log";s:1:"0";}',
|
||||
'states' => array(
|
||||
0 => array(
|
||||
'state' => '(creation)',
|
||||
'weight' => -50,
|
||||
'sysid' => 1,
|
||||
'status' => 1,
|
||||
'name' => 'Publication',
|
||||
),
|
||||
1 => array(
|
||||
'state' => 'Brouillon',
|
||||
'weight' => -20,
|
||||
'sysid' => 0,
|
||||
'status' => 1,
|
||||
'name' => 'Publication',
|
||||
),
|
||||
2 => array(
|
||||
'state' => 'En attente',
|
||||
'weight' => -20,
|
||||
'sysid' => 0,
|
||||
'status' => 1,
|
||||
'name' => 'Publication',
|
||||
),
|
||||
3 => array(
|
||||
'state' => 'Publié',
|
||||
'weight' => -20,
|
||||
'sysid' => 0,
|
||||
'status' => 1,
|
||||
'name' => 'Publication',
|
||||
),
|
||||
),
|
||||
'transitions' => array(
|
||||
0 => array(
|
||||
'roles' => 'workflow_features_author_name,administrator,root',
|
||||
'state' => '(creation)',
|
||||
'target_state' => 'Brouillon',
|
||||
),
|
||||
1 => array(
|
||||
'roles' => 'administrator,root',
|
||||
'state' => '(creation)',
|
||||
'target_state' => 'En attente',
|
||||
),
|
||||
2 => array(
|
||||
'roles' => 'administrator,root',
|
||||
'state' => '(creation)',
|
||||
'target_state' => 'Publié',
|
||||
),
|
||||
3 => array(
|
||||
'roles' => 'workflow_features_author_name,administrator,root',
|
||||
'state' => 'Brouillon',
|
||||
'target_state' => 'En attente',
|
||||
),
|
||||
4 => array(
|
||||
'roles' => 'workflow_features_author_name,administrator,root',
|
||||
'state' => 'En attente',
|
||||
'target_state' => 'Brouillon',
|
||||
),
|
||||
5 => array(
|
||||
'roles' => 'workflow_features_author_name,administrator,root',
|
||||
'state' => 'En attente',
|
||||
'target_state' => 'Publié',
|
||||
),
|
||||
6 => array(
|
||||
'roles' => 'workflow_features_author_name,administrator,root',
|
||||
'state' => 'Publié',
|
||||
'target_state' => 'Brouillon',
|
||||
),
|
||||
7 => array(
|
||||
'roles' => 'workflow_features_author_name,administrator,root',
|
||||
'state' => 'Publié',
|
||||
'target_state' => 'En attente',
|
||||
),
|
||||
),
|
||||
'node_types' => array(
|
||||
0 => 'documentair',
|
||||
1 => 'episode',
|
||||
2 => 'page',
|
||||
3 => 'thematique',
|
||||
),
|
||||
);
|
||||
|
||||
return $workflows;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user