function features_test_views_default_views in Features 7
Same name and namespace in other branches
- 6 tests/features_test.views_default.inc \features_test_views_default_views()
- 7.2 tests/features_test/features_test.views_default.inc \features_test_views_default_views()
Implements hook_views_default_views().
File
- tests/
features_test.views_default.inc, line 10 - features_test.views_default.inc
Code
function features_test_views_default_views() {
$export = array();
$view = new view();
$view->name = 'features_test';
$view->description = 'Test view provided by Features testing module.';
$view->tag = 'testing';
$view->base_table = 'node';
$view->human_name = '';
$view->core = 0;
$view->api_version = '3.0';
$view->disabled = FALSE;
/* Edit this to true to make a default view disabled initially */
/* Display: Defaults */
$handler = $view
->new_display('default', 'Defaults', 'default');
$handler->display->display_options['title'] = 'Test';
$handler->display->display_options['access']['type'] = 'none';
$handler->display->display_options['cache']['type'] = 'none';
$handler->display->display_options['query']['type'] = 'views_query';
$handler->display->display_options['query']['options']['query_comment'] = FALSE;
$handler->display->display_options['exposed_form']['type'] = 'basic';
$handler->display->display_options['pager']['type'] = 'full';
$handler->display->display_options['style_plugin'] = 'default';
$handler->display->display_options['row_plugin'] = 'node';
$export['features_test'] = $view;
return $export;
}