source: sipes/modules_contrib/date/includes/date_api.views_default.inc @ 92213c1

stableversion-3.0
Last change on this file since 92213c1 was 177a560, checked in by José Gregorio Puentes <jpuentes@…>, 8 años ago

se agrego el directorio de modulos contribuidos de drupal

  • Propiedad mode establecida a 100755
File size: 3.0 KB
Línea 
1<?php
2/**
3 * @file
4 * Default Views.
5 */
6
7function date_api_views_default_views() {
8
9$view = new view;
10$view->name = 'date_browser';
11$view->description = 'Browse through nodes by year, month, day, or week. Date browser attachment adds back/next navigation to the top of the page.';
12$view->tag = 'Date';
13$view->view_php = '';
14$view->base_table = 'node';
15$view->is_cacheable = FALSE;
16$view->api_version = 2;
17$view->disabled = TRUE; /* Edit this to true to make a default view disabled initially */
18$handler = $view->new_display('default', 'Defaults', 'default');
19$handler->override_option('arguments', array(
20  'date_argument' => array(
21    'default_action' => 'default',
22    'style_plugin' => 'default_summary',
23    'style_options' => array(),
24    'wildcard' => 'all',
25    'wildcard_substitution' => 'All',
26    'title' => '',
27    'default_argument_type' => 'date',
28    'default_argument' => '',
29    'validate_type' => 'none',
30    'validate_fail' => 'not found',
31    'date_fields' => array(
32      'node.changed' => 'node.changed',
33    ),
34    'year_range' => '-3:+3',
35    'date_method' => 'OR',
36    'granularity' => 'month',
37    'id' => 'date_argument',
38    'table' => 'node',
39    'field' => 'date_argument',
40    'relationship' => 'none',
41    'default_argument_user' => 0,
42    'default_argument_fixed' => '',
43    'default_argument_php' => '',
44    'validate_argument_node_type' => array(),
45    'validate_argument_node_access' => 0,
46    'validate_argument_nid_type' => 'nid',
47    'validate_argument_vocabulary' => array(),
48    'validate_argument_type' => 'tid',
49    'validate_argument_php' => '',
50    'default_options_div_prefix' => '',
51    'validate_argument_signup_status' => 'any',
52    'validate_argument_signup_node_access' => 0,
53    'override' => array(
54      'button' => 'Override',
55    ),
56  ),
57));
58$handler->override_option('access', array(
59  'type' => 'none',
60  'role' => array(),
61  'perm' => '',
62));
63$handler->override_option('items_per_page', 0);
64$handler->override_option('use_pager', '1');
65$handler->override_option('row_plugin', 'node');
66$handler->override_option('row_options', array(
67  'teaser' => 1,
68  'links' => 1,
69  'comments' => 0,
70));
71$handler = $view->new_display('page', 'Page', 'page');
72$handler->override_option('path', 'date-browser');
73$handler->override_option('menu', array(
74  'type' => 'none',
75  'title' => '',
76  'weight' => 0,
77  'name' => 'navigation',
78));
79$handler->override_option('tab_options', array(
80  'type' => 'none',
81  'title' => '',
82  'weight' => 0,
83));
84$handler = $view->new_display('date_nav', 'Date browser', 'date_nav_1');
85$handler->override_option('style_plugin', 'date_nav');
86$handler->override_option('row_plugin', 'fields');
87$handler->override_option('row_options', array());
88$handler->override_option('attachment_position', 'before');
89$handler->override_option('inherit_arguments', TRUE);
90$handler->override_option('inherit_exposed_filters', TRUE);
91$handler->override_option('displays', array(
92  'page' => 'page',
93  'default' => 0,
94));
95
96  $views[$view->name] = $view;
97  return $views;
98}
Nota: Vea TracBrowser para ayuda de uso del navegador del repositorio.