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