- $view = new view;
- $view->name = 'blog';
- $view->description = 'Provides some blog listings';
- $view->tag = 'blog';
- $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('fields', array(
- 'title' => array(
- 'label' => '',
- 'alter' => array(
- 'alter_text' => 0,
- 'text' => '',
- 'make_link' => 0,
- 'path' => '',
- 'link_class' => '',
- 'alt' => '',
- 'prefix' => '',
- 'suffix' => '',
- 'target' => '',
- 'help' => '',
- 'trim' => 0,
- 'max_length' => '',
- 'word_boundary' => 1,
- 'ellipsis' => 1,
- 'html' => 0,
- 'strip_tags' => 0,
- ),
- 'empty' => '',
- 'hide_empty' => 0,
- 'empty_zero' => 0,
- 'link_to_node' => 1,
- 'exclude' => 0,
- 'id' => 'title',
- 'table' => 'node',
- 'field' => 'title',
- 'relationship' => 'none',
- ),
- 'created' => array(
- 'label' => 'Post date',
- 'alter' => array(
- 'alter_text' => 0,
- 'text' => '',
- 'make_link' => 0,
- 'path' => '',
- 'link_class' => '',
- 'alt' => '',
- 'prefix' => '',
- 'suffix' => '',
- 'target' => '',
- 'help' => '',
- 'trim' => 0,
- 'max_length' => '',
- 'word_boundary' => 1,
- 'ellipsis' => 1,
- 'html' => 0,
- 'strip_tags' => 0,
- ),
- 'empty' => '',
- 'hide_empty' => 0,
- 'empty_zero' => 0,
- 'date_format' => 'small',
- 'custom_date_format' => '',
- 'exclude' => 0,
- 'id' => 'created',
- 'table' => 'node',
- 'field' => 'created',
- 'relationship' => 'none',
- ),
- 'teaser' => array(
- 'label' => 'Teaser',
- 'alter' => array(
- 'alter_text' => 0,
- 'text' => '',
- 'make_link' => 0,
- 'path' => '',
- 'link_class' => '',
- 'alt' => '',
- 'prefix' => '',
- 'suffix' => '',
- 'target' => '',
- 'help' => '',
- 'trim' => 0,
- 'max_length' => '',
- 'word_boundary' => 1,
- 'ellipsis' => 1,
- 'html' => 0,
- 'strip_tags' => 0,
- ),
- 'empty' => '',
- 'hide_empty' => 0,
- 'empty_zero' => 0,
- 'exclude' => 0,
- 'id' => 'teaser',
- 'table' => 'node_revisions',
- 'field' => 'teaser',
- 'relationship' => 'none',
- ),
- 'timestamp' => array(
- 'label' => 'Created date',
- 'alter' => array(
- 'alter_text' => 0,
- 'text' => '',
- 'make_link' => 0,
- 'path' => '',
- 'link_class' => '',
- 'alt' => '',
- 'prefix' => '',
- 'suffix' => '',
- 'target' => '',
- 'help' => '',
- 'trim' => 0,
- 'max_length' => '',
- 'word_boundary' => 1,
- 'ellipsis' => 1,
- 'html' => 0,
- 'strip_tags' => 0,
- ),
- 'empty' => '',
- 'hide_empty' => 0,
- 'empty_zero' => 0,
- 'date_format' => 'small',
- 'custom_date_format' => '',
- 'exclude' => 0,
- 'id' => 'timestamp',
- 'table' => 'node_revisions',
- 'field' => 'timestamp',
- 'relationship' => 'none',
- ),
- 'tid' => array(
- 'label' => 'All terms',
- 'alter' => array(
- 'alter_text' => 0,
- 'text' => '',
- 'make_link' => 0,
- 'path' => '',
- 'link_class' => '',
- 'alt' => '',
- 'prefix' => '',
- 'suffix' => '',
- 'target' => '',
- 'help' => '',
- 'trim' => 0,
- 'max_length' => '',
- 'word_boundary' => 1,
- 'ellipsis' => 1,
- 'html' => 0,
- 'strip_tags' => 0,
- ),
- 'empty' => '',
- 'hide_empty' => 0,
- 'empty_zero' => 0,
- 'type' => 'separator',
- 'separator' => ', ',
- 'link_to_taxonomy' => 1,
- 'limit' => 0,
- 'vids' => array(
- '1' => 0,
- '2' => 0,
- ),
- 'exclude' => 0,
- 'id' => 'tid',
- 'table' => 'term_node',
- 'field' => 'tid',
- 'relationship' => 'none',
- ),
- 'name' => array(
- 'label' => 'Name',
- 'alter' => array(
- 'alter_text' => 0,
- 'text' => '',
- 'make_link' => 0,
- 'path' => '',
- 'link_class' => '',
- 'alt' => '',
- 'prefix' => '',
- 'suffix' => '',
- 'target' => '',
- 'help' => '',
- 'trim' => 0,
- 'max_length' => '',
- 'word_boundary' => 1,
- 'ellipsis' => 1,
- 'html' => 0,
- 'strip_tags' => 0,
- ),
- 'empty' => '',
- 'hide_empty' => 0,
- 'empty_zero' => 0,
- 'link_to_user' => 1,
- 'overwrite_anonymous' => 0,
- 'anonymous_text' => '',
- 'exclude' => 0,
- 'id' => 'name',
- 'table' => 'users',
- 'field' => 'name',
- 'relationship' => 'none',
- ),
- 'picture' => array(
- 'label' => 'Picture',
- 'alter' => array(
- 'alter_text' => 0,
- 'text' => '',
- 'make_link' => 0,
- 'path' => '',
- 'link_class' => '',
- 'alt' => '',
- 'prefix' => '',
- 'suffix' => '',
- 'target' => '',
- 'help' => '',
- 'trim' => 0,
- 'max_length' => '',
- 'word_boundary' => 1,
- 'ellipsis' => 1,
- 'html' => 0,
- 'strip_tags' => 0,
- ),
- 'empty' => '',
- 'hide_empty' => 0,
- 'empty_zero' => 0,
- 'exclude' => 0,
- 'id' => 'picture',
- 'table' => 'users',
- 'field' => 'picture',
- 'relationship' => 'none',
- ),
- ));
- $handler->override_option('arguments', array(
- 'created_year' => array(
- 'default_action' => 'ignore',
- 'style_plugin' => 'default_summary',
- 'style_options' => array(
- 'count' => 1,
- 'override' => 0,
- 'items_per_page' => '25',
- ),
- 'wildcard' => 'all',
- 'wildcard_substitution' => 'All',
- 'title' => 'Blog archive: %1',
- 'breadcrumb' => '',
- 'default_argument_type' => 'fixed',
- 'default_argument' => '',
- 'validate_type' => 'none',
- 'validate_fail' => 'not found',
- 'id' => 'created_year',
- 'table' => 'node',
- 'field' => 'created_year',
- 'validate_user_argument_type' => 'uid',
- 'validate_user_roles' => array(
- '2' => 0,
- '4' => 0,
- '5' => 0,
- '6' => 0,
- '3' => 0,
- ),
- 'relationship' => 'none',
- 'default_options_div_prefix' => '',
- 'default_argument_fixed' => '',
- 'default_argument_user' => 0,
- 'default_argument_php' => '',
- 'validate_argument_node_type' => array(
- 'blog' => 0,
- 'document' => 0,
- 'page' => 0,
- 'poll' => 0,
- 'story' => 0,
- ),
- 'validate_argument_node_access' => 0,
- 'validate_argument_nid_type' => 'nid',
- 'validate_argument_vocabulary' => array(
- '3' => 0,
- '4' => 0,
- '1' => 0,
- '2' => 0,
- ),
- 'validate_argument_type' => 'tid',
- 'validate_argument_transform' => 0,
- 'validate_user_restrict_roles' => 0,
- 'validate_argument_php' => '',
- 'override' => array(
- 'button' => 'Override',
- ),
- 'me_redirect' => 0,
- 'me_validate_user_argument_type' => 'uid',
- 'me_validate_user_roles' => array(
- '2' => 0,
- '4' => 0,
- '5' => 0,
- '6' => 0,
- '3' => 0,
- ),
- 'me_validate_user_restrict_roles' => 0,
- ),
- 'created_month' => array(
- 'default_action' => 'ignore',
- 'style_plugin' => 'default_summary',
- 'style_options' => array(
- 'count' => 1,
- 'override' => 0,
- 'items_per_page' => '25',
- ),
- 'wildcard' => 'all',
- 'wildcard_substitution' => 'All',
- 'title' => 'Blog archive: %1 / %2',
- 'breadcrumb' => '%1',
- 'default_argument_type' => 'fixed',
- 'default_argument' => '',
- 'validate_type' => 'none',
- 'validate_fail' => 'not found',
- 'id' => 'created_month',
- 'table' => 'node',
- 'field' => 'created_month',
- 'validate_user_argument_type' => 'uid',
- 'validate_user_roles' => array(
- '2' => 0,
- '4' => 0,
- '5' => 0,
- '6' => 0,
- '3' => 0,
- ),
- 'relationship' => 'none',
- 'default_options_div_prefix' => '',
- 'default_argument_fixed' => '',
- 'default_argument_user' => 0,
- 'default_argument_php' => '',
- 'validate_argument_node_type' => array(
- 'blog' => 0,
- 'document' => 0,
- 'page' => 0,
- 'poll' => 0,
- 'story' => 0,
- ),
- 'validate_argument_node_access' => 0,
- 'validate_argument_nid_type' => 'nid',
- 'validate_argument_vocabulary' => array(
- '3' => 0,
- '4' => 0,
- '1' => 0,
- '2' => 0,
- ),
- 'validate_argument_type' => 'tid',
- 'validate_argument_transform' => 0,
- 'validate_user_restrict_roles' => 0,
- 'validate_argument_php' => '',
- 'override' => array(
- 'button' => 'Override',
- ),
- 'me_redirect' => 0,
- 'me_validate_user_argument_type' => 'uid',
- 'me_validate_user_roles' => array(
- '2' => 0,
- '4' => 0,
- '5' => 0,
- '6' => 0,
- '3' => 0,
- ),
- 'me_validate_user_restrict_roles' => 0,
- ),
- 'created_day' => array(
- 'default_action' => 'ignore',
- 'style_plugin' => 'default_summary',
- 'style_options' => array(
- 'count' => 1,
- 'override' => 0,
- 'items_per_page' => '25',
- ),
- 'wildcard' => 'all',
- 'wildcard_substitution' => 'All',
- 'title' => 'Blog archive: %1 / %2 / %3',
- 'breadcrumb' => '%2',
- 'default_argument_type' => 'fixed',
- 'default_argument' => '',
- 'validate_type' => 'none',
- 'validate_fail' => 'not found',
- 'id' => 'created_day',
- 'table' => 'node',
- 'field' => 'created_day',
- 'validate_user_argument_type' => 'uid',
- 'validate_user_roles' => array(
- '2' => 0,
- '4' => 0,
- '5' => 0,
- '6' => 0,
- '3' => 0,
- ),
- 'relationship' => 'none',
- 'default_options_div_prefix' => '',
- 'default_argument_fixed' => '',
- 'default_argument_user' => 0,
- 'default_argument_php' => '',
- 'validate_argument_node_type' => array(
- 'blog' => 0,
- 'document' => 0,
- 'page' => 0,
- 'poll' => 0,
- 'story' => 0,
- ),
- 'validate_argument_node_access' => 0,
- 'validate_argument_nid_type' => 'nid',
- 'validate_argument_vocabulary' => array(
- '3' => 0,
- '4' => 0,
- '1' => 0,
- '2' => 0,
- ),
- 'validate_argument_type' => 'tid',
- 'validate_argument_transform' => 0,
- 'validate_user_restrict_roles' => 0,
- 'validate_argument_php' => '',
- 'override' => array(
- 'button' => 'Override',
- ),
- 'me_redirect' => 0,
- 'me_validate_user_argument_type' => 'uid',
- 'me_validate_user_roles' => array(
- '2' => 0,
- '4' => 0,
- '5' => 0,
- '6' => 0,
- '3' => 0,
- ),
- 'me_validate_user_restrict_roles' => 0,
- ),
- 'created_year_month' => array(
- 'id' => 'created_year_month',
- 'table' => 'node',
- 'field' => 'created_year_month',
- ),
- ));
- $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(
- 'blog' => 'blog',
- ),
- 'group' => '0',
- 'exposed' => FALSE,
- 'expose' => array(
- 'operator' => FALSE,
- 'label' => '',
- ),
- 'id' => 'type',
- 'table' => 'node',
- 'field' => 'type',
- 'relationship' => 'none',
- ),
- ));
- $handler->override_option('access', array(
- 'type' => 'none',
- ));
- $handler->override_option('cache', array(
- 'type' => 'none',
- ));
- $handler->override_option('title', 'Blog');
- $handler->override_option('items_per_page', 8);
- $handler->override_option('use_pager', '1');
- $handler->override_option('row_plugin', 'node');
- $handler->override_option('row_options', array(
- 'relationship' => 'none',
- 'build_mode' => 'teaser',
- 'links' => 1,
- 'comments' => 0,
- ));
- $handler = $view->new_display('page', 'Page', 'page_1');
- $handler->override_option('path', 'blog');
- $handler->override_option('menu', array(
- 'type' => 'none',
- 'title' => '',
- 'description' => '',
- 'weight' => 0,
- 'name' => 'navigation',
- ));
- $handler->override_option('tab_options', array(
- 'type' => 'none',
- 'title' => '',
- 'description' => '',
- 'weight' => 0,
- 'name' => 'navigation',
- ));
- $handler = $view->new_display('block', 'Block', 'block_1');
- $handler->override_option('arguments', array(
- 'created_year_month' => array(
- 'default_action' => 'summary desc',
- 'style_plugin' => 'default_summary',
- 'style_options' => array(
- 'count' => 1,
- 'override' => 0,
- 'items_per_page' => '25',
- ),
- 'wildcard' => 'all',
- 'wildcard_substitution' => 'All',
- 'title' => '',
- 'breadcrumb' => '',
- 'default_argument_type' => 'fixed',
- 'default_argument' => '',
- 'validate_type' => 'none',
- 'validate_fail' => 'not found',
- 'id' => 'created_year_month',
- 'table' => 'node',
- 'field' => 'created_year_month',
- 'validate_user_argument_type' => 'uid',
- 'validate_user_roles' => array(
- '2' => 0,
- '4' => 0,
- '5' => 0,
- '6' => 0,
- '3' => 0,
- ),
- 'me_redirect' => 0,
- 'me_validate_user_argument_type' => 'uid',
- 'me_validate_user_roles' => array(
- '2' => 0,
- '4' => 0,
- '5' => 0,
- '6' => 0,
- '3' => 0,
- ),
- 'override' => array(
- 'button' => 'Use default',
- ),
- 'relationship' => 'none',
- 'default_options_div_prefix' => '',
- 'default_argument_fixed' => '',
- 'default_argument_user' => 0,
- 'default_argument_php' => '',
- 'validate_argument_node_type' => array(
- 'blog' => 0,
- 'document' => 0,
- 'page' => 0,
- 'poll' => 0,
- 'story' => 0,
- ),
- 'validate_argument_node_access' => 0,
- 'validate_argument_nid_type' => 'nid',
- 'validate_argument_vocabulary' => array(
- '3' => 0,
- '4' => 0,
- '1' => 0,
- '2' => 0,
- ),
- 'validate_argument_type' => 'tid',
- 'validate_argument_transform' => 0,
- 'validate_user_restrict_roles' => 0,
- 'validate_argument_php' => '',
- 'me_validate_user_restrict_roles' => 0,
- ),
- ));
- $handler->override_option('items_per_page', 0);
- $handler->override_option('use_pager', '0');
- $handler->override_option('block_description', 'Blog Archive');
- $handler->override_option('block_caching', -1);