complete refactoring of thematique list display : entityfieldquery + viewmode
This commit is contained in:
@@ -49,15 +49,17 @@ function admin_views_default_views() {
|
||||
$handler->display->display_options['style_plugin'] = 'table';
|
||||
$handler->display->display_options['style_options']['columns'] = array(
|
||||
'views_bulk_operations' => 'views_bulk_operations',
|
||||
'field_video' => 'field_video',
|
||||
'field_emvideo' => 'field_emvideo',
|
||||
'type' => 'title',
|
||||
'title' => 'title',
|
||||
'field_poid' => 'field_poid',
|
||||
'edit_node' => 'title',
|
||||
'sid' => 'sid',
|
||||
'sid_1' => 'sid',
|
||||
'scheduled' => 'sid',
|
||||
'field_thematique' => 'field_thematique',
|
||||
'field_episodes' => 'field_episodes',
|
||||
'field_eclairages' => 'field_eclairages',
|
||||
'field_thematique' => 'field_thematique',
|
||||
'translate_node' => 'translate_node',
|
||||
'changed' => 'changed',
|
||||
'delete_node' => 'delete_node',
|
||||
@@ -69,7 +71,7 @@ function admin_views_default_views() {
|
||||
'separator' => '',
|
||||
'empty_column' => 0,
|
||||
),
|
||||
'field_video' => array(
|
||||
'field_emvideo' => array(
|
||||
'sortable' => 0,
|
||||
'default_sort_order' => 'asc',
|
||||
'align' => '',
|
||||
@@ -90,6 +92,13 @@ function admin_views_default_views() {
|
||||
'separator' => '<br />',
|
||||
'empty_column' => 0,
|
||||
),
|
||||
'field_poid' => array(
|
||||
'sortable' => 1,
|
||||
'default_sort_order' => 'asc',
|
||||
'align' => '',
|
||||
'separator' => '',
|
||||
'empty_column' => 0,
|
||||
),
|
||||
'edit_node' => array(
|
||||
'align' => '',
|
||||
'separator' => '',
|
||||
@@ -116,14 +125,19 @@ function admin_views_default_views() {
|
||||
'separator' => '',
|
||||
'empty_column' => 0,
|
||||
),
|
||||
'field_thematique' => array(
|
||||
'sortable' => 0,
|
||||
'default_sort_order' => 'asc',
|
||||
'field_episodes' => array(
|
||||
'align' => '',
|
||||
'separator' => '',
|
||||
'empty_column' => 0,
|
||||
),
|
||||
'field_episodes' => array(
|
||||
'field_eclairages' => array(
|
||||
'align' => '',
|
||||
'separator' => '',
|
||||
'empty_column' => 0,
|
||||
),
|
||||
'field_thematique' => array(
|
||||
'sortable' => 0,
|
||||
'default_sort_order' => 'asc',
|
||||
'align' => '',
|
||||
'separator' => '',
|
||||
'empty_column' => 0,
|
||||
@@ -207,6 +221,14 @@ function admin_views_default_views() {
|
||||
$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;
|
||||
/* Field: Content: Poid */
|
||||
$handler->display->display_options['fields']['field_poid']['id'] = 'field_poid';
|
||||
$handler->display->display_options['fields']['field_poid']['table'] = 'field_data_field_poid';
|
||||
$handler->display->display_options['fields']['field_poid']['field'] = 'field_poid';
|
||||
$handler->display->display_options['fields']['field_poid']['settings'] = array(
|
||||
'thousand_separator' => '',
|
||||
'prefix_suffix' => 1,
|
||||
);
|
||||
/* 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';
|
||||
@@ -430,6 +452,7 @@ return !(node_access(\'update\', node_load($data->nid), $user));
|
||||
t('Video'),
|
||||
t('Type'),
|
||||
t('Title'),
|
||||
t('Poid'),
|
||||
t('<span class="node-edit">[edit_node]</span>'),
|
||||
t('Current state'),
|
||||
t('Scheduled state'),
|
||||
|
||||
Reference in New Issue
Block a user