function draggableviews_tests_views_default_views in DraggableViews 7
Implements hook_views_default_views().
File
- draggableviews_tests/
draggableviews_tests.views_default.inc, line 6
Code
function draggableviews_tests_views_default_views() {
$view = new view();
$view->name = 'native_pager_unlimited';
$view->description = '';
$view->tag = 'default';
$view->base_table = 'node';
$view->human_name = 'native_pager_unlimited';
$view->core = 7;
$view->api_version = '3.0-alpha1';
$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'] = 'native_pager_unlimited';
$handler->display->display_options['access']['type'] = 'perm';
$handler->display->display_options['cache']['type'] = 'none';
$handler->display->display_options['query']['type'] = 'views_query';
$handler->display->display_options['exposed_form']['type'] = 'basic';
$handler->display->display_options['pager']['type'] = 'none';
$handler->display->display_options['pager']['options']['offset'] = '0';
$handler->display->display_options['style_plugin'] = 'draggabletable';
$handler->display->display_options['style_options']['columns'] = array(
'title' => 'title',
'value0' => 'value0',
);
$handler->display->display_options['style_options']['default'] = -1;
$handler->display->display_options['style_options']['info'] = array(
'title' => array(
'sortable' => 0,
'default_sort_order' => 'asc',
'align' => '',
'separator' => '',
),
'value0' => array(
'sortable' => 0,
'default_sort_order' => 'asc',
'align' => '',
'separator' => '',
),
);
$handler->display->display_options['style_options']['override'] = 1;
$handler->display->display_options['style_options']['sticky'] = 0;
$handler->display->display_options['style_options']['empty_table'] = 0;
$handler->display->display_options['style_options']['tabledrag_order'] = array(
'field' => 'value0',
'handler' => 'native',
);
$handler->display->display_options['style_options']['tabledrag_order_visible'] = array(
'visible' => 0,
);
$handler->display->display_options['style_options']['tabledrag_hierarchy'] = array(
'field' => 'none',
'handler' => 'native',
);
$handler->display->display_options['style_options']['tabledrag_hierarchy_visible'] = array(
'visible' => 0,
);
$handler->display->display_options['style_options']['draggableviews_depth_limit'] = '0';
$handler->display->display_options['style_options']['draggableviews_repair'] = array(
0 => 'repair',
'repair' => 0,
);
$handler->display->display_options['style_options']['draggableviews_ajax'] = array(
'use_ajax' => 0,
);
$handler->display->display_options['style_options']['tabledrag_expand'] = array(
'expand_links' => 0,
'collapsed' => 0,
'by_uid' => 0,
);
$handler->display->display_options['style_options']['draggableviews_extensions'] = array(
'extension_top' => '3',
'extension_bottom' => '3',
);
$handler->display->display_options['style_options']['tabledrag_lock'] = array(
'lock' => 0,
);
$handler->display->display_options['style_options']['draggableviews_default_on_top'] = '1';
$handler->display->display_options['style_options']['draggableviews_arguments'] = array(
'use_args' => 0,
);
/* 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']['label'] = '';
$handler->display->display_options['fields']['title']['alter']['alter_text'] = 0;
$handler->display->display_options['fields']['title']['alter']['make_link'] = 0;
$handler->display->display_options['fields']['title']['alter']['absolute'] = 0;
$handler->display->display_options['fields']['title']['alter']['trim'] = 0;
$handler->display->display_options['fields']['title']['alter']['word_boundary'] = 0;
$handler->display->display_options['fields']['title']['alter']['ellipsis'] = 0;
$handler->display->display_options['fields']['title']['alter']['strip_tags'] = 0;
$handler->display->display_options['fields']['title']['alter']['html'] = 0;
$handler->display->display_options['fields']['title']['hide_empty'] = 0;
$handler->display->display_options['fields']['title']['empty_zero'] = 0;
$handler->display->display_options['fields']['title']['link_to_node'] = 1;
/* Field: DraggableViews: Order */
$handler->display->display_options['fields']['value0']['id'] = 'value0';
$handler->display->display_options['fields']['value0']['table'] = 'draggableviews_structure_node0';
$handler->display->display_options['fields']['value0']['field'] = 'value0';
$handler->display->display_options['fields']['value0']['alter']['alter_text'] = 0;
$handler->display->display_options['fields']['value0']['alter']['make_link'] = 0;
$handler->display->display_options['fields']['value0']['alter']['absolute'] = 0;
$handler->display->display_options['fields']['value0']['alter']['external'] = 0;
$handler->display->display_options['fields']['value0']['alter']['replace_spaces'] = 0;
$handler->display->display_options['fields']['value0']['alter']['trim'] = 0;
$handler->display->display_options['fields']['value0']['alter']['nl2br'] = 0;
$handler->display->display_options['fields']['value0']['alter']['word_boundary'] = 1;
$handler->display->display_options['fields']['value0']['alter']['ellipsis'] = 1;
$handler->display->display_options['fields']['value0']['alter']['strip_tags'] = 0;
$handler->display->display_options['fields']['value0']['alter']['html'] = 0;
$handler->display->display_options['fields']['value0']['element_label_colon'] = 1;
$handler->display->display_options['fields']['value0']['element_default_classes'] = 1;
$handler->display->display_options['fields']['value0']['hide_empty'] = 0;
$handler->display->display_options['fields']['value0']['empty_zero'] = 0;
/* Sort criterion: DraggableViews: Order */
$handler->display->display_options['sorts']['value0']['id'] = 'value0';
$handler->display->display_options['sorts']['value0']['table'] = 'draggableviews_structure_node0';
$handler->display->display_options['sorts']['value0']['field'] = 'value0';
/* Filter criterion: Content: Published */
$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'] = 1;
$handler->display->display_options['filters']['status']['group'] = 0;
$handler->display->display_options['filters']['status']['expose']['operator'] = FALSE;
/* Display: Page */
$handler = $view
->new_display('page', 'Page', 'page');
$handler->display->display_options['path'] = 'native-pager-unlimited';
$translatables['native_pager_unlimited'] = array(
t('Master'),
t('native_pager_unlimited'),
t('more'),
t('Apply'),
t('Reset'),
t('Sort by'),
t('Asc'),
t('Desc'),
t('Order'),
t('Page'),
);
$views[$view->name] = $view;
return $views;
}