| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165 | <?php/** * @file * materio_administration.features.inc *//** * Implements hook_ctools_plugin_api(). */function materio_administration_ctools_plugin_api($module = NULL, $api = NULL) {  if ($module == "elysia_cron" && $api == "default_elysia_cron_rules") {    return array("version" => "1");  }  if ($module == "strongarm" && $api == "strongarm") {    return array("version" => "1");  }}/** * Implements hook_views_api(). */function materio_administration_views_api($module = NULL, $api = NULL) {  return array("api" => "3.0");}/** * Implements hook_workflow_default_workflows(). */function materio_administration_workflow_default_workflows() {  $workflows = array();  // Exported workflow: Publication  $workflows['Publication'] = array(    'name' => 'Publication',    'tab_roles' => '',    'options' => 'a:4:{s:16:"comment_log_node";i:0;s:15:"comment_log_tab";i:0;s:13:"name_as_title";i:0;s:12:"watchdog_log";i:1;}',    'states' => array(      0 => array(        'state' => '(creation)',        'weight' => -50,        'sysid' => 1,        'status' => 1,        'name' => 'Publication',      ),      1 => array(        'state' => 'Importé',        'weight' => 0,        'sysid' => 0,        'status' => 1,        'name' => 'Publication',      ),      2 => array(        'state' => 'Édité',        'weight' => 1,        'sysid' => 0,        'status' => 1,        'name' => 'Publication',      ),      3 => array(        'state' => 'Masqué',        'weight' => 2,        'sysid' => 0,        'status' => 1,        'name' => 'Publication',      ),      4 => array(        'state' => 'Publié',        'weight' => 3,        'sysid' => 0,        'status' => 1,        'name' => 'Publication',      ),    ),    'transitions' => array(      0 => array(        'roles' => 'workflow_features_author_name,administrator,root',        'state' => '(creation)',        'target_state' => 'Masqué',      ),      1 => array(        'roles' => 'workflow_features_author_name,administrator,root',        'state' => '(creation)',        'target_state' => 'Publié',      ),      2 => array(        'roles' => 'root',        'state' => '(creation)',        'target_state' => 'Importé',      ),      3 => array(        'roles' => 'administrator,root',        'state' => 'Importé',        'target_state' => 'Édité',      ),      4 => array(        'roles' => 'workflow_features_author_name,administrator,root',        'state' => 'Importé',        'target_state' => 'Masqué',      ),      5 => array(        'roles' => 'workflow_features_author_name,administrator,root',        'state' => 'Importé',        'target_state' => 'Publié',      ),      6 => array(        'roles' => 'root',        'state' => 'Édité',        'target_state' => 'Importé',      ),      7 => array(        'roles' => 'workflow_features_author_name,administrator,root',        'state' => 'Édité',        'target_state' => 'Masqué',      ),      8 => array(        'roles' => 'workflow_features_author_name,administrator,root',        'state' => 'Édité',        'target_state' => 'Publié',      ),      9 => array(        'roles' => 'workflow_features_author_name,administrator,root',        'state' => 'Masqué',        'target_state' => 'Publié',      ),      10 => array(        'roles' => 'root',        'state' => 'Masqué',        'target_state' => 'Importé',      ),      11 => array(        'roles' => 'workflow_features_author_name,administrator,root',        'state' => 'Masqué',        'target_state' => 'Édité',      ),      12 => array(        'roles' => 'workflow_features_author_name,administrator,root',        'state' => 'Publié',        'target_state' => 'Masqué',      ),      13 => array(        'roles' => 'root',        'state' => 'Publié',        'target_state' => 'Importé',      ),      14 => array(        'roles' => 'workflow_features_author_name,administrator,root',        'state' => 'Publié',        'target_state' => 'Édité',      ),    ),    'node_types' => array(      0 => 'breve',      1 => 'company',      2 => 'didactique',      3 => 'faq',      4 => 'looping_embed_video',      5 => 'materiau',      6 => 'page',      7 => 'publication',      8 => 'simplenews',    ),  );  return $workflows;}
 |