$view = new view; $view->name = 'date_browser'; $view->description = 'Browse through nodes by year, month, day, or week. Date browser attachment adds back/next navigation to the top of the page.'; $view->tag = 'Date'; $view->view_php = ''; $view->base_table = 'node'; $view->is_cacheable = FALSE; $view->api_version = 2; $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */ $handler = $view->new_display('default', 'Defaults', 'default'); $handler->override_option('relationships', array( 'field_program_nid' => array( 'label' => 'Relationship to a program', 'required' => 0, 'delta' => -1, 'id' => 'field_program_nid', 'table' => 'node_data_field_program', 'field' => 'field_program_nid', 'relationship' => 'none', 'override' => array( 'button' => 'Override', ), ), 'flag_content_rel' => array( 'label' => 'Program Favorites', 'required' => 0, 'flag' => 'program_favorite', 'user_scope' => 'current', 'id' => 'flag_content_rel', 'table' => 'node', 'field' => 'flag_content_rel', 'relationship' => 'field_program_nid', ), )); $handler->override_option('fields', array( 'field_date_value' => array( 'label' => '', 'link_to_node' => 0, 'label_type' => 'none', 'format' => 'time', 'multiple' => array( 'group' => 0, 'multiple_number' => '', 'multiple_from' => '', 'multiple_reversed' => 0, ), 'exclude' => 0, 'id' => 'field_date_value', 'table' => 'node_data_field_date', 'field' => 'field_date_value', 'relationship' => 'none', ), 'field_program_nid' => array( 'label' => '', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'strip_tags' => 0, 'html' => 0, ), 'link_to_node' => 1, 'label_type' => 'none', 'format' => 'default', 'multiple' => array( 'group' => TRUE, 'multiple_number' => '', 'multiple_from' => '', 'multiple_reversed' => FALSE, ), 'exclude' => 0, 'id' => 'field_program_nid', 'table' => 'node_data_field_program', 'field' => 'field_program_nid', 'relationship' => 'none', ), 'ops_1' => array( 'label' => '', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'strip_tags' => 0, 'html' => 0, ), 'link_type' => 'toggle', 'exclude' => 0, 'id' => 'ops_1', 'table' => 'flag_content', 'field' => 'ops', 'relationship' => 'flag_content_rel', ), )); $handler->override_option('sorts', array( 'field_date_value' => array( 'order' => 'ASC', 'delta' => '-1', 'id' => 'field_date_value', 'table' => 'node_data_field_date', 'field' => 'field_date_value', 'relationship' => 'none', ), )); $handler->override_option('arguments', array( 'date_argument' => array( 'default_action' => 'default', 'style_plugin' => 'default_summary', 'style_options' => array(), 'wildcard' => 'all', 'wildcard_substitution' => 'All', 'title' => '', 'default_argument_type' => 'date', 'default_argument' => '', 'validate_type' => 'none', 'validate_fail' => 'not found', 'date_fields' => array( 'node_data_field_date.field_date_value' => 'node_data_field_date.field_date_value', ), 'year_range' => '-1:+1', 'date_method' => 'OR', 'granularity' => 'day', 'id' => 'date_argument', 'table' => 'node', 'field' => 'date_argument', 'relationship' => 'none', 'default_argument_user' => 0, 'default_argument_fixed' => '', 'default_argument_php' => '', 'validate_argument_node_type' => array( 'news' => 0, 'page' => 0, 'people' => 0, 'program' => 0, 'showtime' => 0, ), 'validate_argument_node_access' => 0, 'validate_argument_nid_type' => 'nid', 'validate_argument_vocabulary' => array( '1' => 0, ), 'validate_argument_type' => 'tid', 'validate_argument_php' => '', 'default_options_div_prefix' => '', 'validate_argument_signup_status' => 'any', 'validate_argument_signup_node_access' => 0, 'override' => array( 'button' => 'Override', ), 'validate_argument_node_flag_name' => '*relationship*', 'validate_argument_node_flag_test' => 'flaggable', 'validate_argument_node_flag_id_type' => 'id', 'validate_argument_user_flag_name' => '*relationship*', 'validate_argument_user_flag_test' => 'flaggable', 'validate_argument_user_flag_id_type' => 'id', 'validate_user_argument_type' => 'uid', 'validate_user_roles' => array( '2' => 0, '3' => 0, ), 'validate_argument_transform' => 0, 'validate_user_restrict_roles' => 0, ), )); $handler->override_option('filters', array( 'status' => array( 'operator' => '=', 'value' => '1', 'group' => '0', 'exposed' => FALSE, 'expose' => array( 'operator' => FALSE, 'label' => '', ), 'id' => 'status', 'table' => 'node', 'field' => 'status', 'relationship' => 'none', ), 'type' => array( 'operator' => 'in', 'value' => array( 'showtime' => 'showtime', ), 'group' => '0', 'exposed' => FALSE, 'expose' => array( 'operator' => FALSE, 'label' => '', ), 'id' => 'type', 'table' => 'node', 'field' => 'type', 'relationship' => 'none', ), 'date_filter' => array( 'operator' => 'between', 'value' => array( 'value' => NULL, 'min' => NULL, 'max' => NULL, 'default_date' => '6AM today', 'default_to_date' => '5:59AM tomorrow', ), 'group' => '0', 'exposed' => FALSE, 'expose' => array( 'operator' => FALSE, 'label' => '', ), 'date_fields' => array( 'node_data_field_date.field_date_value' => 'node_data_field_date.field_date_value', ), 'date_method' => 'OR', 'granularity' => 'hour', 'form_type' => 'date_select', 'default_date' => '6AM today', 'default_to_date' => '5:59AM tomorrow', 'year_range' => '-1:+1', 'id' => 'date_filter', 'table' => 'node', 'field' => 'date_filter', 'override' => array( 'button' => 'Override', ), 'relationship' => 'none', ), )); $handler->override_option('access', array( 'type' => 'none', 'role' => array(), 'perm' => '', )); $handler->override_option('cache', array( 'type' => 'none', )); $handler->override_option('items_per_page', 0); $handler->override_option('use_pager', '1'); $handler->override_option('distinct', 1); $handler->override_option('style_plugin', 'table'); $handler->override_option('row_plugin', 'node'); $handler->override_option('row_options', array( 'teaser' => 1, 'links' => 1, 'comments' => 0, )); $handler = $view->new_display('page', 'Page', 'page'); $handler->override_option('fields', array( 'field_date_value' => array( 'label' => '', 'link_to_node' => 0, 'label_type' => 'none', 'format' => 'time', 'multiple' => array( 'group' => 0, 'multiple_number' => '', 'multiple_from' => '', 'multiple_reversed' => 0, ), 'exclude' => 0, 'id' => 'field_date_value', 'table' => 'node_data_field_date', 'field' => 'field_date_value', 'relationship' => 'none', ), 'field_program_nid' => array( 'label' => '', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'strip_tags' => 0, 'html' => 0, ), 'link_to_node' => 1, 'label_type' => 'none', 'format' => 'default', 'multiple' => array( 'group' => TRUE, 'multiple_number' => '', 'multiple_from' => '', 'multiple_reversed' => FALSE, ), 'exclude' => 0, 'id' => 'field_program_nid', 'table' => 'node_data_field_program', 'field' => 'field_program_nid', 'relationship' => 'none', 'override' => array( 'button' => 'Use default', ), ), 'ops' => array( 'label' => '', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'html' => 0, ), 'link_type' => 'toggle', 'exclude' => 0, 'id' => 'ops', 'table' => 'flag_content', 'field' => 'ops', 'relationship' => 'flag_content_rel', 'override' => array( 'button' => 'Use default', ), ), )); $handler->override_option('path', 'fullschedule'); $handler->override_option('menu', array( 'type' => 'normal', 'title' => 'Schedule', 'description' => '', 'weight' => '0', 'name' => 'primary-links', )); $handler->override_option('tab_options', array( 'type' => 'none', 'title' => '', 'description' => '', 'weight' => 0, )); $handler = $view->new_display('date_nav', 'Date browser', 'date_nav_1'); $handler->override_option('style_plugin', 'date_nav'); $handler->override_option('row_plugin', 'fields'); $handler->override_option('row_options', array()); $handler->override_option('attachment_position', 'before'); $handler->override_option('inherit_arguments', TRUE); $handler->override_option('inherit_exposed_filters', 1); $handler->override_option('displays', array( 'page' => 'page', 'default' => 0, ));