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