cer_entity_settings.views_default.inc 3.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <?php
  2. /**
  3. * Implements hook_views_default_views().
  4. */
  5. function cer_entity_settings_views_default_views() {
  6. $views = array();
  7. $view = new view();
  8. $view->name = 'cer_endpoint_in_use';
  9. $view->description = '';
  10. $view->tag = 'CER Entity Settings';
  11. $view->base_table = 'cer_preset';
  12. $view->human_name = 'CER Endpoints in Use';
  13. $view->core = 7;
  14. $view->api_version = '3.0';
  15. $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
  16. /* Display: Master */
  17. $handler = $view->new_display('default', 'Master', 'default');
  18. $handler->display->display_options['use_more_always'] = FALSE;
  19. $handler->display->display_options['access']['type'] = 'none';
  20. $handler->display->display_options['cache']['type'] = 'none';
  21. $handler->display->display_options['query']['type'] = 'views_query';
  22. $handler->display->display_options['exposed_form']['type'] = 'basic';
  23. $handler->display->display_options['pager']['type'] = 'none';
  24. $handler->display->display_options['pager']['options']['offset'] = '0';
  25. $handler->display->display_options['style_plugin'] = 'default';
  26. $handler->display->display_options['row_plugin'] = 'entity';
  27. $handler->display->display_options['row_options']['view_mode'] = 'default';
  28. $handler->display->display_options['filter_groups']['groups'] = array(
  29. 1 => 'OR',
  30. );
  31. /* Filter criterion: CER Preset: Left Field (cer_left) */
  32. $handler->display->display_options['filters']['cer_left_path']['id'] = 'cer_left_path';
  33. $handler->display->display_options['filters']['cer_left_path']['table'] = 'field_data_cer_left';
  34. $handler->display->display_options['filters']['cer_left_path']['field'] = 'cer_left_path';
  35. $handler->display->display_options['filters']['cer_left_path']['operator'] = 'starts';
  36. $handler->display->display_options['filters']['cer_left_path']['group'] = 1;
  37. $handler->display->display_options['filters']['cer_left_path']['exposed'] = TRUE;
  38. $handler->display->display_options['filters']['cer_left_path']['expose']['operator_id'] = 'cer_left_path_op';
  39. $handler->display->display_options['filters']['cer_left_path']['expose']['label'] = 'Left Field';
  40. $handler->display->display_options['filters']['cer_left_path']['expose']['operator'] = 'cer_left_path_op';
  41. $handler->display->display_options['filters']['cer_left_path']['expose']['identifier'] = 'left';
  42. $handler->display->display_options['filters']['cer_left_path']['expose']['remember_roles'] = array(
  43. 2 => '2',
  44. 1 => 0,
  45. );
  46. /* Filter criterion: CER Preset: Right Field (cer_right) */
  47. $handler->display->display_options['filters']['cer_right_path']['id'] = 'cer_right_path';
  48. $handler->display->display_options['filters']['cer_right_path']['table'] = 'field_data_cer_right';
  49. $handler->display->display_options['filters']['cer_right_path']['field'] = 'cer_right_path';
  50. $handler->display->display_options['filters']['cer_right_path']['operator'] = 'starts';
  51. $handler->display->display_options['filters']['cer_right_path']['group'] = 1;
  52. $handler->display->display_options['filters']['cer_right_path']['exposed'] = TRUE;
  53. $handler->display->display_options['filters']['cer_right_path']['expose']['operator_id'] = 'cer_right_path_op';
  54. $handler->display->display_options['filters']['cer_right_path']['expose']['label'] = 'Right Field';
  55. $handler->display->display_options['filters']['cer_right_path']['expose']['operator'] = 'cer_right_path_op';
  56. $handler->display->display_options['filters']['cer_right_path']['expose']['identifier'] = 'right';
  57. $handler->display->display_options['filters']['cer_right_path']['expose']['remember_roles'] = array(
  58. 2 => '2',
  59. 1 => 0,
  60. );
  61. $views[$view->name] = $view;
  62. return $views;
  63. }