variable_views.views_default.inc 4.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. <?php
  2. /**
  3. * @file
  4. * View for listing variables.
  5. */
  6. /**
  7. * Implements hook_views_default_views().
  8. */
  9. function variable_views_views_default_views() {
  10. $view = new view;
  11. $view->name = 'variable';
  12. $view->description = 'System variables';
  13. $view->tag = 'default';
  14. $view->base_table = 'variable';
  15. $view->human_name = 'Variable';
  16. $view->core = 7;
  17. $view->api_version = '3.0';
  18. $view->disabled = TRUE; /* Edit this to true to make a default view disabled initially */
  19. /* Display: Master */
  20. $handler = $view->new_display('default', 'Master', 'default');
  21. $handler->display->display_options['title'] = 'System variables';
  22. $handler->display->display_options['access']['type'] = 'perm';
  23. $handler->display->display_options['access']['perm'] = 'administer site configuration';
  24. $handler->display->display_options['cache']['type'] = 'none';
  25. $handler->display->display_options['query']['type'] = 'views_query';
  26. $handler->display->display_options['query']['options']['query_comment'] = FALSE;
  27. $handler->display->display_options['exposed_form']['type'] = 'basic';
  28. $handler->display->display_options['pager']['type'] = 'full';
  29. $handler->display->display_options['pager']['options']['items_per_page'] = '10';
  30. $handler->display->display_options['style_plugin'] = 'table';
  31. /* Field: Variable: Title */
  32. $handler->display->display_options['fields']['title']['id'] = 'title';
  33. $handler->display->display_options['fields']['title']['table'] = 'variable';
  34. $handler->display->display_options['fields']['title']['field'] = 'title';
  35. $handler->display->display_options['fields']['title']['alter']['alter_text'] = 0;
  36. $handler->display->display_options['fields']['title']['alter']['make_link'] = 0;
  37. $handler->display->display_options['fields']['title']['alter']['absolute'] = 0;
  38. $handler->display->display_options['fields']['title']['alter']['external'] = 0;
  39. $handler->display->display_options['fields']['title']['alter']['replace_spaces'] = 0;
  40. $handler->display->display_options['fields']['title']['alter']['trim_whitespace'] = 0;
  41. $handler->display->display_options['fields']['title']['alter']['nl2br'] = 0;
  42. $handler->display->display_options['fields']['title']['alter']['word_boundary'] = 1;
  43. $handler->display->display_options['fields']['title']['alter']['ellipsis'] = 1;
  44. $handler->display->display_options['fields']['title']['alter']['strip_tags'] = 0;
  45. $handler->display->display_options['fields']['title']['alter']['trim'] = 0;
  46. $handler->display->display_options['fields']['title']['alter']['html'] = 0;
  47. $handler->display->display_options['fields']['title']['element_label_colon'] = 1;
  48. $handler->display->display_options['fields']['title']['element_default_classes'] = 1;
  49. $handler->display->display_options['fields']['title']['hide_empty'] = 0;
  50. $handler->display->display_options['fields']['title']['empty_zero'] = 0;
  51. $handler->display->display_options['fields']['title']['hide_alter_empty'] = 1;
  52. /* Field: Variable: Name */
  53. $handler->display->display_options['fields']['name']['id'] = 'name';
  54. $handler->display->display_options['fields']['name']['table'] = 'variable';
  55. $handler->display->display_options['fields']['name']['field'] = 'name';
  56. /* Field: Variable: Value */
  57. $handler->display->display_options['fields']['value']['id'] = 'value';
  58. $handler->display->display_options['fields']['value']['table'] = 'variable';
  59. $handler->display->display_options['fields']['value']['field'] = 'value';
  60. $handler->display->display_options['fields']['value']['alter']['alter_text'] = 0;
  61. $handler->display->display_options['fields']['value']['alter']['make_link'] = 0;
  62. $handler->display->display_options['fields']['value']['alter']['absolute'] = 0;
  63. $handler->display->display_options['fields']['value']['alter']['external'] = 0;
  64. $handler->display->display_options['fields']['value']['alter']['replace_spaces'] = 0;
  65. $handler->display->display_options['fields']['value']['alter']['trim_whitespace'] = 0;
  66. $handler->display->display_options['fields']['value']['alter']['nl2br'] = 0;
  67. $handler->display->display_options['fields']['value']['alter']['word_boundary'] = 1;
  68. $handler->display->display_options['fields']['value']['alter']['ellipsis'] = 1;
  69. $handler->display->display_options['fields']['value']['alter']['strip_tags'] = 0;
  70. $handler->display->display_options['fields']['value']['alter']['trim'] = 0;
  71. $handler->display->display_options['fields']['value']['alter']['html'] = 0;
  72. $handler->display->display_options['fields']['value']['element_label_colon'] = 1;
  73. $handler->display->display_options['fields']['value']['element_default_classes'] = 1;
  74. $handler->display->display_options['fields']['value']['hide_empty'] = 0;
  75. $handler->display->display_options['fields']['value']['empty_zero'] = 0;
  76. $handler->display->display_options['fields']['value']['hide_alter_empty'] = 1;
  77. /* Display: Page */
  78. $handler = $view->new_display('page', 'Page', 'page');
  79. $handler->display->display_options['path'] = 'variable';
  80. $views[$view->name] = $view;
  81. return $views;
  82. }