123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492 |
- <?php
- /**
- * @file
- * admin.views_default.inc
- */
- /**
- * Implements hook_views_default_views().
- */
- function admin_views_default_views() {
- $export = array();
- $view = new view();
- $view->name = 'admin_contents';
- $view->description = 'Administrative view for content';
- $view->tag = 'default';
- $view->base_table = 'node';
- $view->human_name = 'Admin Content';
- $view->core = 7;
- $view->api_version = '3.0';
- $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
- /* Display: Master */
- $handler = $view->new_display('default', 'Master', 'default');
- $handler->display->display_options['title'] = 'Contenu';
- $handler->display->display_options['use_more_always'] = FALSE;
- $handler->display->display_options['use_more_text'] = 'plus';
- $handler->display->display_options['access']['type'] = 'role';
- $handler->display->display_options['access']['role'] = array(
- 3 => '3',
- 4 => '4',
- );
- $handler->display->display_options['cache']['type'] = 'none';
- $handler->display->display_options['query']['type'] = 'views_query';
- $handler->display->display_options['query']['options']['distinct'] = TRUE;
- $handler->display->display_options['query']['options']['query_comment'] = FALSE;
- $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']['exposed_sorts_label'] = 'Trier par';
- $handler->display->display_options['exposed_form']['options']['autosubmit'] = TRUE;
- $handler->display->display_options['pager']['type'] = 'mini';
- $handler->display->display_options['pager']['options']['items_per_page'] = '20';
- $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_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',
- 'type' => 'title',
- 'title' => 'title',
- 'edit_node' => 'title',
- 'status' => 'status',
- 'language' => 'language',
- 'translate_node' => 'language',
- 'changed' => 'changed',
- 'delete_node' => 'delete_node',
- );
- $handler->display->display_options['style_options']['default'] = 'changed';
- $handler->display->display_options['style_options']['info'] = array(
- 'views_bulk_operations' => array(
- 'align' => '',
- 'separator' => '',
- 'empty_column' => 0,
- ),
- 'type' => array(
- 'sortable' => 0,
- 'default_sort_order' => 'asc',
- 'align' => '',
- 'separator' => '<br />',
- 'empty_column' => 0,
- ),
- 'title' => array(
- 'sortable' => 0,
- 'default_sort_order' => 'asc',
- 'align' => '',
- 'separator' => '<br />',
- 'empty_column' => 0,
- ),
- 'edit_node' => array(
- 'align' => '',
- 'separator' => '',
- 'empty_column' => 0,
- ),
- 'status' => array(
- 'sortable' => 0,
- 'default_sort_order' => 'asc',
- 'align' => '',
- 'separator' => '<br />',
- 'empty_column' => 0,
- ),
- 'language' => array(
- 'sortable' => 0,
- 'default_sort_order' => 'asc',
- 'align' => '',
- 'separator' => '<br />',
- 'empty_column' => 0,
- ),
- 'translate_node' => array(
- 'align' => '',
- 'separator' => '',
- 'empty_column' => 0,
- ),
- 'changed' => array(
- 'sortable' => 0,
- 'default_sort_order' => 'desc',
- 'align' => '',
- 'separator' => '',
- 'empty_column' => 0,
- ),
- 'delete_node' => array(
- 'align' => '',
- 'separator' => '',
- 'empty_column' => 0,
- ),
- );
- $handler->display->display_options['style_options']['override'] = FALSE;
- /* En-tête: 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 */
- $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';
- $handler->display->display_options['fields']['views_bulk_operations']['label'] = '';
- $handler->display->display_options['fields']['views_bulk_operations']['element_label_colon'] = FALSE;
- $handler->display->display_options['fields']['views_bulk_operations']['vbo_settings']['display_type'] = '0';
- $handler->display->display_options['fields']['views_bulk_operations']['vbo_settings']['enable_select_all_pages'] = 1;
- $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' => 0,
- 'postpone_processing' => 0,
- 'skip_confirmation' => 0,
- 'override_label' => 0,
- 'label' => '',
- ),
- 'action::node_unpublish_by_keyword_action' => array(
- 'selected' => 0,
- 'postpone_processing' => 0,
- 'skip_confirmation' => 0,
- 'override_label' => 0,
- 'label' => '',
- ),
- 'action::node_save_action' => array(
- 'selected' => 0,
- 'postpone_processing' => 0,
- 'skip_confirmation' => 0,
- 'override_label' => 0,
- 'label' => '',
- ),
- 'action::system_send_email_action' => array(
- 'selected' => 0,
- 'postpone_processing' => 0,
- 'skip_confirmation' => 0,
- 'override_label' => 0,
- 'label' => '',
- ),
- '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,
- 'skip_confirmation' => 0,
- 'override_label' => 0,
- 'label' => '',
- 'settings' => array(
- 'url' => '',
- ),
- ),
- 'action::node_promote_action' => array(
- 'selected' => 1,
- 'postpone_processing' => 0,
- 'skip_confirmation' => 0,
- 'override_label' => 0,
- 'label' => '',
- ),
- 'action::node_publish_action' => array(
- 'selected' => 0,
- 'postpone_processing' => 0,
- 'skip_confirmation' => 0,
- 'override_label' => 0,
- 'label' => '',
- ),
- 'action::node_unpromote_action' => array(
- 'selected' => 1,
- 'postpone_processing' => 0,
- 'skip_confirmation' => 0,
- 'override_label' => 0,
- 'label' => '',
- ),
- 'action::node_make_unsticky_action' => array(
- 'selected' => 1,
- 'postpone_processing' => 0,
- 'skip_confirmation' => 0,
- 'override_label' => 0,
- 'label' => '',
- ),
- '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' => 1,
- 'postpone_processing' => 0,
- 'skip_confirmation' => 0,
- 'override_label' => 0,
- 'label' => '',
- ),
- );
- /* Champ: Contenu : 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 */
- $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 */
- $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'] = '';
- $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']['element_label_colon'] = FALSE;
- $handler->display->display_options['fields']['edit_node']['hide_alter_empty'] = FALSE;
- /* 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';
- $handler->display->display_options['fields']['changed']['field'] = 'changed';
- $handler->display->display_options['fields']['changed']['date_format'] = 'short';
- /* Champ: Contenu : Lien de suppression */
- $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';
- $handler->display->display_options['fields']['delete_node']['alter']['alter_text'] = TRUE;
- $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['filter_groups']['groups'] = array(
- 1 => 'AND',
- 2 => 'AND',
- );
- /* Critère de filtrage: Contenu : 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';
- $handler->display->display_options['filters']['type']['value'] = array(
- 'chapitre' => 'chapitre',
- 'page' => 'page',
- );
- $handler->display->display_options['filters']['type']['group'] = 1;
- $handler->display->display_options['filters']['type']['exposed'] = TRUE;
- $handler->display->display_options['filters']['type']['expose']['operator_id'] = 'type_op';
- $handler->display->display_options['filters']['type']['expose']['label'] = 'Type';
- $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']['remember_roles'] = array(
- 2 => '2',
- 1 => 0,
- 3 => 0,
- 4 => 0,
- );
- $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';
- $handler->display->display_options['filters']['php']['field'] = 'php';
- $handler->display->display_options['filters']['php']['ui_name'] = 'current user can update';
- $handler->display->display_options['filters']['php']['group'] = 1;
- $handler->display->display_options['filters']['php']['use_php_setup'] = 0;
- $handler->display->display_options['filters']['php']['php_filter'] = 'global $user;
- //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');
- $handler->display->display_options['defaults']['pager'] = FALSE;
- $handler->display->display_options['pager']['type'] = 'mini';
- $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_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'] = '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';
- /* Display: Block */
- $handler = $view->new_display('block', 'Block', 'block_1');
- $handler->display->display_options['defaults']['title'] = FALSE;
- $handler->display->display_options['title'] = 'Recent Content';
- $handler->display->display_options['defaults']['pager'] = FALSE;
- $handler->display->display_options['pager']['type'] = 'some';
- $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 */
- $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 */
- $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 */
- $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']['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é */
- $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_alter_empty'] = FALSE;
- /* 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']['element_label_colon'] = FALSE;
- $handler->display->display_options['fields']['translate_node']['hide_alter_empty'] = FALSE;
- $handler->display->display_options['fields']['translate_node']['text'] = 'Traduire';
- $translatables['admin_contents'] = array(
- t('Master'),
- t('Contenu'),
- t('plus'),
- t('Filtrer'),
- t('réinitialiser'),
- 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('Displaying @start - @end of @total'),
- t('- Choisir une opération -'),
- t('Type'),
- t('Titre'),
- t('<span class="node-edit">[edit_node]</span>'),
- t('Current state'),
- t('Page d\'accueil'),
- t('Date de mise à jour'),
- t('Lien de suppression'),
- t('<span class="node-delete">[delete_node]</span>'),
- t('supprimer'),
- t('Page : all'),
- t('Block'),
- t('Recent Content'),
- t('Modifier'),
- t('Publié'),
- t('Langue'),
- t('Lien de traduction'),
- t('Traduire'),
- );
- $export['admin_contents'] = $view;
- return $export;
- }
|