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;
|
||||
}
|
||||
|
||||
@@ -687,7 +687,7 @@ function admin_user_default_permissions() {
|
||||
'administrator' => 'administrator',
|
||||
'root' => 'root',
|
||||
),
|
||||
'module' => 'workflow_admin_ui',
|
||||
'module' => 'workflow',
|
||||
);
|
||||
|
||||
// Exported permission: 'rename features'.
|
||||
|
||||
@@ -11,84 +11,84 @@ function admin_workflow_access_features_default_settings() {
|
||||
$workflows = array();
|
||||
|
||||
$workflows['Publication'] = array();
|
||||
$workflows['Publication']['Brouillon'] = array();
|
||||
$workflows['Publication']['Brouillon']['administrator'] = array(
|
||||
$workflows['Publication']['brouillon'] = array();
|
||||
$workflows['Publication']['brouillon']['workflow_features_author_name'] = 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(
|
||||
$workflows['Publication']['brouillon']['anonymous user'] = array(
|
||||
'grant_view' => 0,
|
||||
'grant_update' => 0,
|
||||
'grant_delete' => 0,
|
||||
);
|
||||
$workflows['Publication']['Brouillon']['authenticated user'] = array(
|
||||
$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(
|
||||
$workflows['Publication']['brouillon']['administrator'] = array(
|
||||
'grant_view' => 1,
|
||||
'grant_update' => 0,
|
||||
'grant_delete' => 0,
|
||||
'grant_update' => 1,
|
||||
'grant_delete' => 1,
|
||||
);
|
||||
$workflows['Publication']['En attente']['authenticated user'] = array(
|
||||
$workflows['Publication']['brouillon']['root'] = array(
|
||||
'grant_view' => 1,
|
||||
'grant_update' => 0,
|
||||
'grant_delete' => 0,
|
||||
'grant_update' => 1,
|
||||
'grant_delete' => 1,
|
||||
);
|
||||
$workflows['Publication']['En attente']['administrator'] = array(
|
||||
$workflows['Publication']['en_attente'] = array();
|
||||
$workflows['Publication']['en_attente']['workflow_features_author_name'] = 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(
|
||||
$workflows['Publication']['en_attente']['anonymous user'] = array(
|
||||
'grant_view' => 1,
|
||||
'grant_update' => 0,
|
||||
'grant_delete' => 0,
|
||||
);
|
||||
$workflows['Publication']['Publié']['authenticated user'] = array(
|
||||
$workflows['Publication']['en_attente']['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(
|
||||
$workflows['Publication']['en_attente']['administrator'] = array(
|
||||
'grant_view' => 0,
|
||||
'grant_update' => 1,
|
||||
'grant_delete' => 1,
|
||||
);
|
||||
$workflows['Publication']['Publié']['workflow_features_author_name'] = array(
|
||||
$workflows['Publication']['en_attente']['root'] = array(
|
||||
'grant_view' => 0,
|
||||
'grant_update' => 1,
|
||||
'grant_delete' => 1,
|
||||
);
|
||||
$workflows['Publication']['publié'] = array();
|
||||
$workflows['Publication']['publié']['workflow_features_author_name'] = array(
|
||||
'grant_view' => 0,
|
||||
'grant_update' => 1,
|
||||
'grant_delete' => 0,
|
||||
);
|
||||
$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,
|
||||
);
|
||||
|
||||
return $workflows;
|
||||
}
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
name = Admin
|
||||
core = 7.x
|
||||
package = FigLi
|
||||
dependencies[] = admin_menu
|
||||
dependencies[] = admin_menu_source
|
||||
dependencies[] = admin_theme
|
||||
dependencies[] = adminimal_admin_menu
|
||||
@@ -10,6 +11,7 @@ dependencies[] = content_type_extras
|
||||
dependencies[] = context_ui
|
||||
dependencies[] = ctools
|
||||
dependencies[] = devel
|
||||
dependencies[] = entity
|
||||
dependencies[] = entity_translation
|
||||
dependencies[] = features
|
||||
dependencies[] = field_group
|
||||
@@ -22,18 +24,22 @@ dependencies[] = i18n_string
|
||||
dependencies[] = image
|
||||
dependencies[] = imce
|
||||
dependencies[] = linkit
|
||||
dependencies[] = locale
|
||||
dependencies[] = login_destination
|
||||
dependencies[] = logintoboggan_rules
|
||||
dependencies[] = logintoboggan_variable
|
||||
dependencies[] = menu
|
||||
dependencies[] = menu_admin_per_menu
|
||||
dependencies[] = menu_editor
|
||||
dependencies[] = module_filter
|
||||
dependencies[] = node
|
||||
dependencies[] = nodeformcols
|
||||
dependencies[] = page_manager
|
||||
dependencies[] = path
|
||||
dependencies[] = pathauto
|
||||
dependencies[] = queue_ui
|
||||
dependencies[] = redirect
|
||||
dependencies[] = rules
|
||||
dependencies[] = shortcut
|
||||
dependencies[] = strongarm
|
||||
dependencies[] = styles_ui
|
||||
@@ -54,9 +60,11 @@ dependencies[] = workflow_admin_ui
|
||||
dependencies[] = workflow_rules
|
||||
dependencies[] = workflow_vbo
|
||||
dependencies[] = workflow_views
|
||||
dependencies[] = workflownode
|
||||
dependencies[] = wysiwyg
|
||||
dependencies[] = wysiwyg_button_order
|
||||
dependencies[] = wysiwyg_filter
|
||||
features[Workflow][] = Publication
|
||||
features[ctools][] = strongarm:strongarm:1
|
||||
features[ctools][] = views:views_default:3.0
|
||||
features[features_api][] = api:2
|
||||
|
||||
@@ -22,7 +22,7 @@ function admin_views_default_views() {
|
||||
|
||||
/* Display: Master */
|
||||
$handler = $view->new_display('default', 'Master', 'default');
|
||||
$handler->display->display_options['title'] = 'Contenu';
|
||||
$handler->display->display_options['title'] = 'Content';
|
||||
$handler->display->display_options['use_more_always'] = FALSE;
|
||||
$handler->display->display_options['use_more_text'] = 'plus';
|
||||
$handler->display->display_options['access']['type'] = 'role';
|
||||
@@ -37,7 +37,7 @@ function admin_views_default_views() {
|
||||
$handler->display->display_options['exposed_form']['type'] = 'basic';
|
||||
$handler->display->display_options['exposed_form']['options']['submit_button'] = 'Filtrer';
|
||||
$handler->display->display_options['exposed_form']['options']['reset_button'] = TRUE;
|
||||
$handler->display->display_options['exposed_form']['options']['reset_button_label'] = 'réinitialiser';
|
||||
$handler->display->display_options['exposed_form']['options']['reset_button_label'] = 'reset';
|
||||
$handler->display->display_options['exposed_form']['options']['exposed_sorts_label'] = 'Trier par';
|
||||
$handler->display->display_options['pager']['type'] = 'mini';
|
||||
$handler->display->display_options['pager']['options']['items_per_page'] = '20';
|
||||
@@ -46,10 +46,6 @@ function admin_views_default_views() {
|
||||
$handler->display->display_options['pager']['options']['expose']['items_per_page_label'] = 'Éléments par page';
|
||||
$handler->display->display_options['pager']['options']['expose']['items_per_page_options_all_label'] = '- Tout -';
|
||||
$handler->display->display_options['pager']['options']['expose']['offset_label'] = 'Décalage';
|
||||
$handler->display->display_options['pager']['options']['tags']['first'] = '« premier';
|
||||
$handler->display->display_options['pager']['options']['tags']['previous'] = '‹ précédent';
|
||||
$handler->display->display_options['pager']['options']['tags']['next'] = 'suivant ›';
|
||||
$handler->display->display_options['pager']['options']['tags']['last'] = 'dernier »';
|
||||
$handler->display->display_options['style_plugin'] = 'table';
|
||||
$handler->display->display_options['style_options']['columns'] = array(
|
||||
'views_bulk_operations' => 'views_bulk_operations',
|
||||
@@ -151,11 +147,11 @@ function admin_views_default_views() {
|
||||
),
|
||||
);
|
||||
$handler->display->display_options['style_options']['override'] = FALSE;
|
||||
/* En-tête: Global : Result summary */
|
||||
/* Header: Global: Result summary */
|
||||
$handler->display->display_options['header']['result']['id'] = 'result';
|
||||
$handler->display->display_options['header']['result']['table'] = 'views';
|
||||
$handler->display->display_options['header']['result']['field'] = 'result';
|
||||
/* Champ: Opérations en masse : Contenu */
|
||||
/* Field: Bulk operations: Content */
|
||||
$handler->display->display_options['fields']['views_bulk_operations']['id'] = 'views_bulk_operations';
|
||||
$handler->display->display_options['fields']['views_bulk_operations']['table'] = 'node';
|
||||
$handler->display->display_options['fields']['views_bulk_operations']['field'] = 'views_bulk_operations';
|
||||
@@ -189,7 +185,7 @@ function admin_views_default_views() {
|
||||
'label' => '',
|
||||
),
|
||||
);
|
||||
/* Champ: Contenu : Video */
|
||||
/* Field: Content: Video */
|
||||
$handler->display->display_options['fields']['field_emvideo']['id'] = 'field_emvideo';
|
||||
$handler->display->display_options['fields']['field_emvideo']['table'] = 'field_data_field_emvideo';
|
||||
$handler->display->display_options['fields']['field_emvideo']['field'] = 'field_emvideo';
|
||||
@@ -199,19 +195,19 @@ function admin_views_default_views() {
|
||||
'image_style' => 'thumbnail',
|
||||
'image_link' => '',
|
||||
);
|
||||
/* Champ: Contenu : Type */
|
||||
/* Field: Content: Type */
|
||||
$handler->display->display_options['fields']['type']['id'] = 'type';
|
||||
$handler->display->display_options['fields']['type']['table'] = 'node';
|
||||
$handler->display->display_options['fields']['type']['field'] = 'type';
|
||||
$handler->display->display_options['fields']['type']['hide_alter_empty'] = FALSE;
|
||||
/* Champ: Contenu : Titre */
|
||||
/* Field: Content: Title */
|
||||
$handler->display->display_options['fields']['title']['id'] = 'title';
|
||||
$handler->display->display_options['fields']['title']['table'] = 'node';
|
||||
$handler->display->display_options['fields']['title']['field'] = 'title';
|
||||
$handler->display->display_options['fields']['title']['alter']['word_boundary'] = FALSE;
|
||||
$handler->display->display_options['fields']['title']['alter']['ellipsis'] = FALSE;
|
||||
$handler->display->display_options['fields']['title']['hide_alter_empty'] = FALSE;
|
||||
/* Champ: Contenu : Lien de modification */
|
||||
/* Field: Content: Edit link */
|
||||
$handler->display->display_options['fields']['edit_node']['id'] = 'edit_node';
|
||||
$handler->display->display_options['fields']['edit_node']['table'] = 'views_entity_node';
|
||||
$handler->display->display_options['fields']['edit_node']['field'] = 'edit_node';
|
||||
@@ -220,18 +216,20 @@ function admin_views_default_views() {
|
||||
$handler->display->display_options['fields']['edit_node']['alter']['text'] = '<span class="node-edit">[edit_node]</span>';
|
||||
$handler->display->display_options['fields']['edit_node']['element_label_colon'] = FALSE;
|
||||
$handler->display->display_options['fields']['edit_node']['hide_alter_empty'] = FALSE;
|
||||
/* Champ: Processus : Current state */
|
||||
/* Field: Workflow node: Current state ID */
|
||||
$handler->display->display_options['fields']['sid']['id'] = 'sid';
|
||||
$handler->display->display_options['fields']['sid']['table'] = 'workflow_node';
|
||||
$handler->display->display_options['fields']['sid']['field'] = 'sid';
|
||||
/* Champ: Processus : Scheduled state */
|
||||
$handler->display->display_options['fields']['sid']['label'] = 'Current state';
|
||||
/* Field: Workflow scheduled: Scheduled state Name */
|
||||
$handler->display->display_options['fields']['sid_1']['id'] = 'sid_1';
|
||||
$handler->display->display_options['fields']['sid_1']['table'] = 'workflow_scheduled_transition';
|
||||
$handler->display->display_options['fields']['sid_1']['field'] = 'sid';
|
||||
$handler->display->display_options['fields']['sid_1']['label'] = 'Scheduled state';
|
||||
$handler->display->display_options['fields']['sid_1']['exclude'] = TRUE;
|
||||
$handler->display->display_options['fields']['sid_1']['alter']['text'] = '[sid_1] : [scheduled]';
|
||||
$handler->display->display_options['fields']['sid_1']['hide_empty'] = TRUE;
|
||||
/* Champ: Processus : Scheduled time */
|
||||
/* Field: Workflow scheduled: Scheduled time */
|
||||
$handler->display->display_options['fields']['scheduled']['id'] = 'scheduled';
|
||||
$handler->display->display_options['fields']['scheduled']['table'] = 'workflow_scheduled_transition';
|
||||
$handler->display->display_options['fields']['scheduled']['field'] = 'scheduled';
|
||||
@@ -242,7 +240,7 @@ function admin_views_default_views() {
|
||||
$handler->display->display_options['fields']['scheduled']['date_format'] = 'custom';
|
||||
$handler->display->display_options['fields']['scheduled']['custom_date_format'] = 'd/m/Y h:m';
|
||||
$handler->display->display_options['fields']['scheduled']['second_date_format'] = 'long';
|
||||
/* Champ: Contenu : Épisodes */
|
||||
/* Field: Content: Épisodes */
|
||||
$handler->display->display_options['fields']['field_episodes']['id'] = 'field_episodes';
|
||||
$handler->display->display_options['fields']['field_episodes']['table'] = 'field_data_field_episodes';
|
||||
$handler->display->display_options['fields']['field_episodes']['field'] = 'field_episodes';
|
||||
@@ -251,7 +249,7 @@ function admin_views_default_views() {
|
||||
);
|
||||
$handler->display->display_options['fields']['field_episodes']['delta_offset'] = '0';
|
||||
$handler->display->display_options['fields']['field_episodes']['multi_type'] = 'ol';
|
||||
/* Champ: Contenu : éclairages */
|
||||
/* Field: Content: éclairages */
|
||||
$handler->display->display_options['fields']['field_eclairages']['id'] = 'field_eclairages';
|
||||
$handler->display->display_options['fields']['field_eclairages']['table'] = 'field_data_field_eclairages';
|
||||
$handler->display->display_options['fields']['field_eclairages']['field'] = 'field_eclairages';
|
||||
@@ -260,27 +258,27 @@ function admin_views_default_views() {
|
||||
);
|
||||
$handler->display->display_options['fields']['field_eclairages']['delta_offset'] = '0';
|
||||
$handler->display->display_options['fields']['field_eclairages']['multi_type'] = 'ol';
|
||||
/* Champ: Contenu : Thématique */
|
||||
/* Field: Content: Thématique */
|
||||
$handler->display->display_options['fields']['field_thematique']['id'] = 'field_thematique';
|
||||
$handler->display->display_options['fields']['field_thematique']['table'] = 'field_data_field_thematique';
|
||||
$handler->display->display_options['fields']['field_thematique']['field'] = 'field_thematique';
|
||||
$handler->display->display_options['fields']['field_thematique']['settings'] = array(
|
||||
'link' => 1,
|
||||
);
|
||||
/* Champ: Traduction du contenu : Lien de traduction */
|
||||
/* Field: Content translation: Translate link */
|
||||
$handler->display->display_options['fields']['translate_node']['id'] = 'translate_node';
|
||||
$handler->display->display_options['fields']['translate_node']['table'] = 'node';
|
||||
$handler->display->display_options['fields']['translate_node']['field'] = 'translate_node';
|
||||
$handler->display->display_options['fields']['translate_node']['alter']['alter_text'] = TRUE;
|
||||
$handler->display->display_options['fields']['translate_node']['alter']['text'] = '<span class="button">[translate_node]</span>';
|
||||
$handler->display->display_options['fields']['translate_node']['hide_empty'] = TRUE;
|
||||
$handler->display->display_options['fields']['translate_node']['text'] = 'traduire';
|
||||
/* Champ: Contenu : Date de mise à jour */
|
||||
$handler->display->display_options['fields']['translate_node']['text'] = 'translate';
|
||||
/* Field: Content: Updated date */
|
||||
$handler->display->display_options['fields']['changed']['id'] = 'changed';
|
||||
$handler->display->display_options['fields']['changed']['table'] = 'node';
|
||||
$handler->display->display_options['fields']['changed']['field'] = 'changed';
|
||||
$handler->display->display_options['fields']['changed']['date_format'] = 'short';
|
||||
/* Champ: Contenu : Lien de suppression */
|
||||
/* Field: Content: Delete link */
|
||||
$handler->display->display_options['fields']['delete_node']['id'] = 'delete_node';
|
||||
$handler->display->display_options['fields']['delete_node']['table'] = 'views_entity_node';
|
||||
$handler->display->display_options['fields']['delete_node']['field'] = 'delete_node';
|
||||
@@ -288,12 +286,12 @@ function admin_views_default_views() {
|
||||
$handler->display->display_options['fields']['delete_node']['alter']['text'] = '<span class="node-delete">[delete_node]</span>';
|
||||
$handler->display->display_options['fields']['delete_node']['element_label_colon'] = FALSE;
|
||||
$handler->display->display_options['fields']['delete_node']['hide_empty'] = TRUE;
|
||||
$handler->display->display_options['fields']['delete_node']['text'] = 'supprimer';
|
||||
$handler->display->display_options['fields']['delete_node']['text'] = 'delete';
|
||||
$handler->display->display_options['filter_groups']['groups'] = array(
|
||||
1 => 'AND',
|
||||
2 => 'AND',
|
||||
);
|
||||
/* Critère de filtrage: Contenu : Type */
|
||||
/* Filter criterion: Content: Type */
|
||||
$handler->display->display_options['filters']['type']['id'] = 'type';
|
||||
$handler->display->display_options['filters']['type']['table'] = 'node';
|
||||
$handler->display->display_options['filters']['type']['field'] = 'type';
|
||||
@@ -317,7 +315,7 @@ function admin_views_default_views() {
|
||||
4 => 0,
|
||||
);
|
||||
$handler->display->display_options['filters']['type']['expose']['reduce'] = TRUE;
|
||||
/* Critère de filtrage: current user can update */
|
||||
/* Filter criterion: current user can update */
|
||||
$handler->display->display_options['filters']['php']['id'] = 'php';
|
||||
$handler->display->display_options['filters']['php']['table'] = 'views';
|
||||
$handler->display->display_options['filters']['php']['field'] = 'php';
|
||||
@@ -328,7 +326,7 @@ function admin_views_default_views() {
|
||||
//dsm($data);
|
||||
return !(node_access(\'update\', node_load($data->nid), $user));
|
||||
';
|
||||
/* Critère de filtrage: Processus : Current state */
|
||||
/* Filter criterion: Workflow node: Current state ID */
|
||||
$handler->display->display_options['filters']['sid']['id'] = 'sid';
|
||||
$handler->display->display_options['filters']['sid']['table'] = 'workflow_node';
|
||||
$handler->display->display_options['filters']['sid']['field'] = 'sid';
|
||||
@@ -352,14 +350,7 @@ return !(node_access(\'update\', node_load($data->nid), $user));
|
||||
$handler->display->display_options['pager']['options']['offset'] = '0';
|
||||
$handler->display->display_options['pager']['options']['id'] = '0';
|
||||
$handler->display->display_options['pager']['options']['expose']['items_per_page'] = TRUE;
|
||||
$handler->display->display_options['pager']['options']['expose']['items_per_page_label'] = 'Éléments par page';
|
||||
$handler->display->display_options['pager']['options']['expose']['items_per_page_options_all'] = TRUE;
|
||||
$handler->display->display_options['pager']['options']['expose']['items_per_page_options_all_label'] = '- Tout -';
|
||||
$handler->display->display_options['pager']['options']['expose']['offset_label'] = 'Décalage';
|
||||
$handler->display->display_options['pager']['options']['tags']['first'] = '« premier';
|
||||
$handler->display->display_options['pager']['options']['tags']['previous'] = '‹ précédent';
|
||||
$handler->display->display_options['pager']['options']['tags']['next'] = 'suivant ›';
|
||||
$handler->display->display_options['pager']['options']['tags']['last'] = 'dernier »';
|
||||
$handler->display->display_options['path'] = 'admin/content/nodes';
|
||||
$handler->display->display_options['menu']['type'] = 'tab';
|
||||
$handler->display->display_options['menu']['title'] = 'Content';
|
||||
@@ -378,67 +369,67 @@ return !(node_access(\'update\', node_load($data->nid), $user));
|
||||
$handler->display->display_options['pager']['options']['items_per_page'] = '10';
|
||||
$handler->display->display_options['pager']['options']['offset'] = '0';
|
||||
$handler->display->display_options['defaults']['fields'] = FALSE;
|
||||
/* Champ: Contenu : Type */
|
||||
/* Field: Content: Type */
|
||||
$handler->display->display_options['fields']['type']['id'] = 'type';
|
||||
$handler->display->display_options['fields']['type']['table'] = 'node';
|
||||
$handler->display->display_options['fields']['type']['field'] = 'type';
|
||||
$handler->display->display_options['fields']['type']['hide_alter_empty'] = FALSE;
|
||||
/* Champ: Contenu : Titre */
|
||||
/* Field: Content: Title */
|
||||
$handler->display->display_options['fields']['title']['id'] = 'title';
|
||||
$handler->display->display_options['fields']['title']['table'] = 'node';
|
||||
$handler->display->display_options['fields']['title']['field'] = 'title';
|
||||
$handler->display->display_options['fields']['title']['alter']['word_boundary'] = FALSE;
|
||||
$handler->display->display_options['fields']['title']['alter']['ellipsis'] = FALSE;
|
||||
$handler->display->display_options['fields']['title']['hide_alter_empty'] = FALSE;
|
||||
/* Champ: Contenu : Lien de modification */
|
||||
/* Field: Content: Edit link */
|
||||
$handler->display->display_options['fields']['edit_node']['id'] = 'edit_node';
|
||||
$handler->display->display_options['fields']['edit_node']['table'] = 'views_entity_node';
|
||||
$handler->display->display_options['fields']['edit_node']['field'] = 'edit_node';
|
||||
$handler->display->display_options['fields']['edit_node']['label'] = 'Modifier';
|
||||
$handler->display->display_options['fields']['edit_node']['label'] = 'Edit';
|
||||
$handler->display->display_options['fields']['edit_node']['alter']['alter_text'] = TRUE;
|
||||
$handler->display->display_options['fields']['edit_node']['alter']['text'] = '<span class="node-edit">[edit_node]</span>';
|
||||
$handler->display->display_options['fields']['edit_node']['hide_alter_empty'] = FALSE;
|
||||
/* Champ: Contenu : Publié */
|
||||
/* Field: Content: Published */
|
||||
$handler->display->display_options['fields']['status']['id'] = 'status';
|
||||
$handler->display->display_options['fields']['status']['table'] = 'node';
|
||||
$handler->display->display_options['fields']['status']['field'] = 'status';
|
||||
$handler->display->display_options['fields']['status']['element_label_colon'] = FALSE;
|
||||
$handler->display->display_options['fields']['status']['hide_alter_empty'] = FALSE;
|
||||
$handler->display->display_options['fields']['status']['not'] = 0;
|
||||
/* Champ: Contenu : Langue */
|
||||
/* Field: Content: Language */
|
||||
$handler->display->display_options['fields']['language']['id'] = 'language';
|
||||
$handler->display->display_options['fields']['language']['table'] = 'node';
|
||||
$handler->display->display_options['fields']['language']['field'] = 'language';
|
||||
$handler->display->display_options['fields']['language']['element_label_colon'] = FALSE;
|
||||
$handler->display->display_options['fields']['language']['hide_alter_empty'] = FALSE;
|
||||
/* Champ: Traduction du contenu : Lien de traduction */
|
||||
/* Field: Content translation: Translate link */
|
||||
$handler->display->display_options['fields']['translate_node']['id'] = 'translate_node';
|
||||
$handler->display->display_options['fields']['translate_node']['table'] = 'node';
|
||||
$handler->display->display_options['fields']['translate_node']['field'] = 'translate_node';
|
||||
$handler->display->display_options['fields']['translate_node']['element_label_colon'] = FALSE;
|
||||
$handler->display->display_options['fields']['translate_node']['hide_alter_empty'] = FALSE;
|
||||
$handler->display->display_options['fields']['translate_node']['text'] = 'Traduire';
|
||||
$handler->display->display_options['fields']['translate_node']['text'] = 'Translate';
|
||||
$translatables['admin_contents'] = array(
|
||||
t('Master'),
|
||||
t('Contenu'),
|
||||
t('Content'),
|
||||
t('plus'),
|
||||
t('Filtrer'),
|
||||
t('réinitialiser'),
|
||||
t('reset'),
|
||||
t('Trier par'),
|
||||
t('Asc'),
|
||||
t('Desc'),
|
||||
t('Éléments par page'),
|
||||
t('- Tout -'),
|
||||
t('Décalage'),
|
||||
t('« premier'),
|
||||
t('‹ précédent'),
|
||||
t('suivant ›'),
|
||||
t('dernier »'),
|
||||
t('« first'),
|
||||
t('‹ previous'),
|
||||
t('next ›'),
|
||||
t('last »'),
|
||||
t('Displaying @start - @end of @total'),
|
||||
t('- Choisir une opération -'),
|
||||
t('- Choose an operation -'),
|
||||
t('Video'),
|
||||
t('Type'),
|
||||
t('Titre'),
|
||||
t('Title'),
|
||||
t('<span class="node-edit">[edit_node]</span>'),
|
||||
t('Current state'),
|
||||
t('Scheduled state'),
|
||||
@@ -447,20 +438,24 @@ return !(node_access(\'update\', node_load($data->nid), $user));
|
||||
t('Épisodes'),
|
||||
t('éclairages'),
|
||||
t('Thématique'),
|
||||
t('Lien de traduction'),
|
||||
t('Translate link'),
|
||||
t('<span class="button">[translate_node]</span>'),
|
||||
t('traduire'),
|
||||
t('Date de mise à jour'),
|
||||
t('Lien de suppression'),
|
||||
t('translate'),
|
||||
t('Updated date'),
|
||||
t('Delete link'),
|
||||
t('<span class="node-delete">[delete_node]</span>'),
|
||||
t('supprimer'),
|
||||
t('delete'),
|
||||
t('Page : all'),
|
||||
t('more'),
|
||||
t('Items per page'),
|
||||
t('- All -'),
|
||||
t('Offset'),
|
||||
t('Block'),
|
||||
t('Recent Content'),
|
||||
t('Modifier'),
|
||||
t('Publié'),
|
||||
t('Langue'),
|
||||
t('Traduire'),
|
||||
t('Edit'),
|
||||
t('Published'),
|
||||
t('Language'),
|
||||
t('Translate'),
|
||||
);
|
||||
$export['admin_contents'] = $view;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user