added accriche field to Chapters
This commit is contained in:
@@ -137,47 +137,81 @@ function admin_views_default_views() {
|
||||
$handler->display->display_options['fields']['views_bulk_operations']['vbo_settings']['force_single'] = 0;
|
||||
$handler->display->display_options['fields']['views_bulk_operations']['vbo_settings']['entity_load_capacity'] = '10';
|
||||
$handler->display->display_options['fields']['views_bulk_operations']['vbo_operations'] = array(
|
||||
'action::workflow_vbo_given_state_action' => array(
|
||||
'selected' => 1,
|
||||
'postpone_processing' => 0,
|
||||
'skip_confirmation' => 0,
|
||||
'override_label' => 0,
|
||||
'label' => '',
|
||||
),
|
||||
'action::workflow_vbo_next_state_action' => array(
|
||||
'selected' => 0,
|
||||
'postpone_processing' => 0,
|
||||
'skip_confirmation' => 0,
|
||||
'override_label' => 0,
|
||||
'label' => '',
|
||||
),
|
||||
'action::node_assign_owner_action' => array(
|
||||
'selected' => 0,
|
||||
'postpone_processing' => 0,
|
||||
'skip_confirmation' => 0,
|
||||
'override_label' => 0,
|
||||
'label' => '',
|
||||
),
|
||||
'action::views_bulk_operations_delete_revision' => array(
|
||||
'selected' => 0,
|
||||
'postpone_processing' => 0,
|
||||
'skip_confirmation' => 0,
|
||||
'override_label' => 0,
|
||||
'label' => '',
|
||||
),
|
||||
'action::node_unpublish_action' => array(
|
||||
'selected' => 1,
|
||||
'selected' => 0,
|
||||
'postpone_processing' => 0,
|
||||
'skip_confirmation' => 0,
|
||||
'override_label' => 0,
|
||||
'label' => '',
|
||||
'postpone_processing' => 0,
|
||||
),
|
||||
'action::node_unpublish_by_keyword_action' => array(
|
||||
'selected' => 0,
|
||||
'postpone_processing' => 0,
|
||||
'skip_confirmation' => 0,
|
||||
'override_label' => 0,
|
||||
'label' => '',
|
||||
'postpone_processing' => 0,
|
||||
),
|
||||
'action::node_save_action' => array(
|
||||
'selected' => 0,
|
||||
'postpone_processing' => 0,
|
||||
'skip_confirmation' => 0,
|
||||
'override_label' => 0,
|
||||
'label' => '',
|
||||
'postpone_processing' => 0,
|
||||
),
|
||||
'action::system_send_email_action' => array(
|
||||
'selected' => 0,
|
||||
'postpone_processing' => 0,
|
||||
'skip_confirmation' => 0,
|
||||
'override_label' => 0,
|
||||
'label' => '',
|
||||
'postpone_processing' => 0,
|
||||
),
|
||||
'action::views_bulk_operations_script_action' => array(
|
||||
'selected' => 0,
|
||||
'postpone_processing' => 0,
|
||||
'skip_confirmation' => 0,
|
||||
'override_label' => 0,
|
||||
'label' => '',
|
||||
),
|
||||
'action::views_bulk_operations_modify_action' => array(
|
||||
'selected' => 0,
|
||||
'postpone_processing' => 0,
|
||||
'skip_confirmation' => 0,
|
||||
'override_label' => 0,
|
||||
'label' => '',
|
||||
'settings' => array(
|
||||
'show_all_tokens' => 1,
|
||||
'display_values' => array(
|
||||
'_all_' => '_all_',
|
||||
),
|
||||
),
|
||||
),
|
||||
'action::views_bulk_operations_argument_selector_action' => array(
|
||||
'selected' => 0,
|
||||
@@ -189,46 +223,53 @@ function admin_views_default_views() {
|
||||
),
|
||||
),
|
||||
'action::node_promote_action' => array(
|
||||
'selected' => 0,
|
||||
'selected' => 1,
|
||||
'postpone_processing' => 0,
|
||||
'skip_confirmation' => 0,
|
||||
'override_label' => 0,
|
||||
'label' => '',
|
||||
'postpone_processing' => 0,
|
||||
),
|
||||
'action::node_publish_action' => array(
|
||||
'selected' => 1,
|
||||
'selected' => 0,
|
||||
'postpone_processing' => 0,
|
||||
'skip_confirmation' => 0,
|
||||
'override_label' => 0,
|
||||
'label' => '',
|
||||
'postpone_processing' => 0,
|
||||
),
|
||||
'action::node_unpromote_action' => array(
|
||||
'selected' => 0,
|
||||
'selected' => 1,
|
||||
'postpone_processing' => 0,
|
||||
'skip_confirmation' => 0,
|
||||
'override_label' => 0,
|
||||
'label' => '',
|
||||
'postpone_processing' => 0,
|
||||
),
|
||||
'action::node_make_unsticky_action' => array(
|
||||
'selected' => 0,
|
||||
'selected' => 1,
|
||||
'postpone_processing' => 0,
|
||||
'skip_confirmation' => 0,
|
||||
'override_label' => 0,
|
||||
'label' => '',
|
||||
'postpone_processing' => 0,
|
||||
),
|
||||
'action::views_bulk_operations_delete_item' => array(
|
||||
'selected' => 0,
|
||||
'postpone_processing' => 0,
|
||||
'skip_confirmation' => 0,
|
||||
'override_label' => 0,
|
||||
'label' => '',
|
||||
),
|
||||
'action::pathauto_node_update_action' => array(
|
||||
'selected' => 0,
|
||||
'postpone_processing' => 0,
|
||||
'skip_confirmation' => 0,
|
||||
'override_label' => 0,
|
||||
'label' => '',
|
||||
),
|
||||
'action::node_make_sticky_action' => array(
|
||||
'selected' => 0,
|
||||
'selected' => 1,
|
||||
'postpone_processing' => 0,
|
||||
'skip_confirmation' => 0,
|
||||
'override_label' => 0,
|
||||
'label' => '',
|
||||
'postpone_processing' => 0,
|
||||
),
|
||||
);
|
||||
/* Champ: Contenu : Type */
|
||||
@@ -252,27 +293,16 @@ 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: Contenu : Publié */
|
||||
$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 */
|
||||
$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_empty'] = TRUE;
|
||||
/* Champ: Traduction du contenu : Lien de traduction */
|
||||
$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: Processus : Current state */
|
||||
$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: Contenu : Promu en page d'accueil */
|
||||
$handler->display->display_options['fields']['promote']['id'] = 'promote';
|
||||
$handler->display->display_options['fields']['promote']['table'] = 'node';
|
||||
$handler->display->display_options['fields']['promote']['field'] = 'promote';
|
||||
$handler->display->display_options['fields']['promote']['label'] = 'Page d\'accueil';
|
||||
$handler->display->display_options['fields']['promote']['not'] = 0;
|
||||
/* Champ: Contenu : Date de mise à jour */
|
||||
$handler->display->display_options['fields']['changed']['id'] = 'changed';
|
||||
$handler->display->display_options['fields']['changed']['table'] = 'node';
|
||||
@@ -296,15 +326,8 @@ function admin_views_default_views() {
|
||||
$handler->display->display_options['filters']['type']['table'] = 'node';
|
||||
$handler->display->display_options['filters']['type']['field'] = 'type';
|
||||
$handler->display->display_options['filters']['type']['value'] = array(
|
||||
'all' => 'all',
|
||||
'article' => 'article',
|
||||
'collection' => 'collection',
|
||||
'event' => 'event',
|
||||
'location' => 'location',
|
||||
'chapitre' => 'chapitre',
|
||||
'page' => 'page',
|
||||
'people' => 'people',
|
||||
'program' => 'program',
|
||||
'work' => 'work',
|
||||
);
|
||||
$handler->display->display_options['filters']['type']['group'] = 1;
|
||||
$handler->display->display_options['filters']['type']['exposed'] = TRUE;
|
||||
@@ -313,36 +336,13 @@ function admin_views_default_views() {
|
||||
$handler->display->display_options['filters']['type']['expose']['operator'] = 'type_op';
|
||||
$handler->display->display_options['filters']['type']['expose']['identifier'] = 'type';
|
||||
$handler->display->display_options['filters']['type']['expose']['remember'] = TRUE;
|
||||
$handler->display->display_options['filters']['type']['expose']['reduce'] = TRUE;
|
||||
/* Critère de filtrage: Contenu : Publié */
|
||||
$handler->display->display_options['filters']['status']['id'] = 'status';
|
||||
$handler->display->display_options['filters']['status']['table'] = 'node';
|
||||
$handler->display->display_options['filters']['status']['field'] = 'status';
|
||||
$handler->display->display_options['filters']['status']['value'] = 'All';
|
||||
$handler->display->display_options['filters']['status']['group'] = 1;
|
||||
$handler->display->display_options['filters']['status']['exposed'] = TRUE;
|
||||
$handler->display->display_options['filters']['status']['expose']['operator_id'] = '';
|
||||
$handler->display->display_options['filters']['status']['expose']['label'] = 'Publié';
|
||||
$handler->display->display_options['filters']['status']['expose']['operator'] = 'status_op';
|
||||
$handler->display->display_options['filters']['status']['expose']['identifier'] = 'status';
|
||||
$handler->display->display_options['filters']['status']['expose']['remember'] = TRUE;
|
||||
/* Critère de filtrage: Contenu : Langue */
|
||||
$handler->display->display_options['filters']['language']['id'] = 'language';
|
||||
$handler->display->display_options['filters']['language']['table'] = 'node';
|
||||
$handler->display->display_options['filters']['language']['field'] = 'language';
|
||||
$handler->display->display_options['filters']['language']['value'] = array(
|
||||
'und' => 'und',
|
||||
'en' => 'en',
|
||||
'fr' => 'fr',
|
||||
$handler->display->display_options['filters']['type']['expose']['remember_roles'] = array(
|
||||
2 => '2',
|
||||
1 => 0,
|
||||
3 => 0,
|
||||
4 => 0,
|
||||
);
|
||||
$handler->display->display_options['filters']['language']['group'] = 1;
|
||||
$handler->display->display_options['filters']['language']['exposed'] = TRUE;
|
||||
$handler->display->display_options['filters']['language']['expose']['operator_id'] = 'language_op';
|
||||
$handler->display->display_options['filters']['language']['expose']['label'] = 'Langue';
|
||||
$handler->display->display_options['filters']['language']['expose']['operator'] = 'language_op';
|
||||
$handler->display->display_options['filters']['language']['expose']['identifier'] = 'language';
|
||||
$handler->display->display_options['filters']['language']['expose']['remember'] = TRUE;
|
||||
$handler->display->display_options['filters']['language']['expose']['reduce'] = TRUE;
|
||||
$handler->display->display_options['filters']['type']['expose']['reduce'] = TRUE;
|
||||
/* Critère de filtrage: current user can update */
|
||||
$handler->display->display_options['filters']['php']['id'] = 'php';
|
||||
$handler->display->display_options['filters']['php']['table'] = 'views';
|
||||
@@ -354,6 +354,27 @@ function admin_views_default_views() {
|
||||
//dsm($data);
|
||||
return !(node_access(\'update\', node_load($data->nid), $user));
|
||||
';
|
||||
/* Critère de filtrage: Processus : Current state */
|
||||
$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';
|
||||
$handler->display->display_options['filters']['sid']['value'] = array(
|
||||
2 => '2',
|
||||
3 => '3',
|
||||
);
|
||||
$handler->display->display_options['filters']['sid']['exposed'] = TRUE;
|
||||
$handler->display->display_options['filters']['sid']['expose']['operator_id'] = 'sid_op';
|
||||
$handler->display->display_options['filters']['sid']['expose']['label'] = 'Current state';
|
||||
$handler->display->display_options['filters']['sid']['expose']['operator'] = 'sid_op';
|
||||
$handler->display->display_options['filters']['sid']['expose']['identifier'] = 'sid';
|
||||
$handler->display->display_options['filters']['sid']['expose']['remember'] = TRUE;
|
||||
$handler->display->display_options['filters']['sid']['expose']['remember_roles'] = array(
|
||||
2 => '2',
|
||||
1 => 0,
|
||||
3 => 0,
|
||||
4 => 0,
|
||||
);
|
||||
$handler->display->display_options['filters']['sid']['expose']['reduce'] = TRUE;
|
||||
|
||||
/* Display: Page : all */
|
||||
$handler = $view->new_display('page', 'Page : all', 'page');
|
||||
@@ -362,7 +383,6 @@ return !(node_access(\'update\', node_load($data->nid), $user));
|
||||
$handler->display->display_options['pager']['options']['items_per_page'] = '30';
|
||||
$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 -';
|
||||
@@ -372,10 +392,11 @@ return !(node_access(\'update\', node_load($data->nid), $user));
|
||||
$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']['type'] = 'normal';
|
||||
$handler->display->display_options['menu']['title'] = 'Content';
|
||||
$handler->display->display_options['menu']['weight'] = '-100';
|
||||
$handler->display->display_options['menu']['context'] = 0;
|
||||
$handler->display->display_options['menu']['context_only_inline'] = 0;
|
||||
$handler->display->display_options['tab_options']['type'] = 'normal';
|
||||
$handler->display->display_options['tab_options']['title'] = 'dashboard';
|
||||
$handler->display->display_options['tab_options']['weight'] = '0';
|
||||
@@ -450,11 +471,8 @@ return !(node_access(\'update\', node_load($data->nid), $user));
|
||||
t('Type'),
|
||||
t('Titre'),
|
||||
t('<span class="node-edit">[edit_node]</span>'),
|
||||
t('Publié'),
|
||||
t('Langue'),
|
||||
t('Lien de traduction'),
|
||||
t('<span class="button">[translate_node]</span>'),
|
||||
t('traduire'),
|
||||
t('Current state'),
|
||||
t('Page d\'accueil'),
|
||||
t('Date de mise à jour'),
|
||||
t('Lien de suppression'),
|
||||
t('<span class="node-delete">[delete_node]</span>'),
|
||||
@@ -463,6 +481,9 @@ return !(node_access(\'update\', node_load($data->nid), $user));
|
||||
t('Block'),
|
||||
t('Recent Content'),
|
||||
t('Modifier'),
|
||||
t('Publié'),
|
||||
t('Langue'),
|
||||
t('Lien de traduction'),
|
||||
t('Traduire'),
|
||||
);
|
||||
$export['admin_contents'] = $view;
|
||||
|
||||
Reference in New Issue
Block a user