features_test.views_default.inc 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. /**
  3. * @file
  4. * features_test.views_default.inc
  5. */
  6. /**
  7. * Implements hook_views_default_views().
  8. */
  9. function features_test_views_default_views() {
  10. $export = array();
  11. $view = new view();
  12. $view->name = 'features_test';
  13. $view->description = 'Test view provided by Features testing module.';
  14. $view->tag = 'testing';
  15. $view->base_table = 'node';
  16. $view->human_name = '';
  17. $view->core = 0;
  18. $view->api_version = '3.0';
  19. $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
  20. /* Display: Defaults */
  21. $handler = $view->new_display('default', 'Defaults', 'default');
  22. $handler->display->display_options['title'] = 'Test';
  23. $handler->display->display_options['use_more_always'] = FALSE;
  24. $handler->display->display_options['access']['type'] = 'none';
  25. $handler->display->display_options['cache']['type'] = 'none';
  26. $handler->display->display_options['query']['type'] = 'views_query';
  27. $handler->display->display_options['query']['options']['query_comment'] = FALSE;
  28. $handler->display->display_options['exposed_form']['type'] = 'basic';
  29. $handler->display->display_options['pager']['type'] = 'full';
  30. $handler->display->display_options['style_plugin'] = 'default';
  31. $handler->display->display_options['row_plugin'] = 'node';
  32. $export['features_test'] = $view;
  33. return $export;
  34. }