1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586 |
- <?php
- /**
- * @file
- * View for listing variables.
- */
- /**
- * Implements hook_views_default_views().
- */
- function variable_views_views_default_views() {
- $view = new view;
- $view->name = 'variable';
- $view->description = 'System variables';
- $view->tag = 'default';
- $view->base_table = 'variable';
- $view->human_name = 'Variable';
- $view->core = 7;
- $view->api_version = '3.0';
- $view->disabled = TRUE; /* 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'] = 'System variables';
- $handler->display->display_options['access']['type'] = 'perm';
- $handler->display->display_options['access']['perm'] = 'administer site configuration';
- $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['pager']['options']['items_per_page'] = '10';
- $handler->display->display_options['style_plugin'] = 'table';
- /* Field: Variable: Title */
- $handler->display->display_options['fields']['title']['id'] = 'title';
- $handler->display->display_options['fields']['title']['table'] = 'variable';
- $handler->display->display_options['fields']['title']['field'] = 'title';
- $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']['external'] = 0;
- $handler->display->display_options['fields']['title']['alter']['replace_spaces'] = 0;
- $handler->display->display_options['fields']['title']['alter']['trim_whitespace'] = 0;
- $handler->display->display_options['fields']['title']['alter']['nl2br'] = 0;
- $handler->display->display_options['fields']['title']['alter']['word_boundary'] = 1;
- $handler->display->display_options['fields']['title']['alter']['ellipsis'] = 1;
- $handler->display->display_options['fields']['title']['alter']['strip_tags'] = 0;
- $handler->display->display_options['fields']['title']['alter']['trim'] = 0;
- $handler->display->display_options['fields']['title']['alter']['html'] = 0;
- $handler->display->display_options['fields']['title']['element_label_colon'] = 1;
- $handler->display->display_options['fields']['title']['element_default_classes'] = 1;
- $handler->display->display_options['fields']['title']['hide_empty'] = 0;
- $handler->display->display_options['fields']['title']['empty_zero'] = 0;
- $handler->display->display_options['fields']['title']['hide_alter_empty'] = 1;
- /* Field: Variable: Name */
- $handler->display->display_options['fields']['name']['id'] = 'name';
- $handler->display->display_options['fields']['name']['table'] = 'variable';
- $handler->display->display_options['fields']['name']['field'] = 'name';
- /* Field: Variable: Value */
- $handler->display->display_options['fields']['value']['id'] = 'value';
- $handler->display->display_options['fields']['value']['table'] = 'variable';
- $handler->display->display_options['fields']['value']['field'] = 'value';
- $handler->display->display_options['fields']['value']['alter']['alter_text'] = 0;
- $handler->display->display_options['fields']['value']['alter']['make_link'] = 0;
- $handler->display->display_options['fields']['value']['alter']['absolute'] = 0;
- $handler->display->display_options['fields']['value']['alter']['external'] = 0;
- $handler->display->display_options['fields']['value']['alter']['replace_spaces'] = 0;
- $handler->display->display_options['fields']['value']['alter']['trim_whitespace'] = 0;
- $handler->display->display_options['fields']['value']['alter']['nl2br'] = 0;
- $handler->display->display_options['fields']['value']['alter']['word_boundary'] = 1;
- $handler->display->display_options['fields']['value']['alter']['ellipsis'] = 1;
- $handler->display->display_options['fields']['value']['alter']['strip_tags'] = 0;
- $handler->display->display_options['fields']['value']['alter']['trim'] = 0;
- $handler->display->display_options['fields']['value']['alter']['html'] = 0;
- $handler->display->display_options['fields']['value']['element_label_colon'] = 1;
- $handler->display->display_options['fields']['value']['element_default_classes'] = 1;
- $handler->display->display_options['fields']['value']['hide_empty'] = 0;
- $handler->display->display_options['fields']['value']['empty_zero'] = 0;
- $handler->display->display_options['fields']['value']['hide_alter_empty'] = 1;
- /* Display: Page */
- $handler = $view->new_display('page', 'Page', 'page');
- $handler->display->display_options['path'] = 'variable';
- $views[$view->name] = $view;
- return $views;
- }
|