/ Published in: PHP
Expand |
Embed | Plain Text
$view = new view; $view->name = 'blog'; $view->description = ''; $view->tag = ''; $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'); 'label' => 'user', 'required' => 0, 'id' => 'uid', 'table' => 'node_revisions', 'field' => 'uid', 'button' => 'Override', ), 'relationship' => 'none', ), )); 'label' => '', 'alter_text' => 1, 'text' => '<h2>[title]</h2>', 'make_link' => 0, 'path' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'strip_tags' => 0, 'html' => 0, ), 'link_to_node' => 0, 'exclude' => 0, 'id' => 'title', 'table' => 'node', 'field' => 'title', 'button' => 'Override', ), 'relationship' => 'none', ), 'label' => '', 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'strip_tags' => 0, 'html' => 0, ), 'date_format' => 'small', 'custom_date_format' => '', 'exclude' => 0, 'id' => 'created', 'table' => 'node', 'field' => 'created', 'button' => 'Override', ), 'relationship' => 'none', ), 'label' => '', 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'strip_tags' => 0, 'html' => 0, ), 'text' => '', 'exclude' => 0, 'id' => 'edit_node', 'table' => 'node', 'field' => 'edit_node', 'button' => 'Override', ), 'relationship' => 'none', ), 'label' => '', 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'strip_tags' => 0, 'html' => 0, ), 'exclude' => 0, 'id' => 'body', 'table' => 'node_revisions', 'field' => 'body', 'button' => 'Override', ), 'relationship' => 'none', ), )); 'order' => 'DESC', 'granularity' => 'day', 'id' => 'created', 'table' => 'node', 'field' => 'created', 'relationship' => 'none', ), )); 'default_action' => 'ignore', 'style_plugin' => 'default_summary', 'wildcard' => 'all', 'wildcard_substitution' => 'All', 'title' => '', 'breadcrumb' => '', 'default_argument_type' => 'fixed', 'default_argument' => '', 'validate_type' => 'none', 'validate_fail' => 'not found', 'break_phrase' => 0, 'not' => 0, 'id' => 'uid', 'table' => 'users', 'field' => 'uid', 'validate_user_argument_type' => 'uid', '2' => 0, '5' => 0, '3' => 0, ), 'button' => 'Override', ), 'relationship' => 'none', 'default_options_div_prefix' => '', 'default_argument_user' => 0, 'default_argument_fixed' => '', 'default_argument_php' => '', 'webform' => 0, 'product' => 0, 'capsule' => 0, 'feature' => 0, 'page' => 0, 'post' => 0, 'press' => 0, 'scene' => 0, 'showcase' => 0, 'story' => 0, ), 'validate_argument_node_access' => 0, 'validate_argument_nid_type' => 'nid', '8' => 0, '7' => 0, '9' => 0, ), 'validate_argument_type' => 'tid', 'validate_argument_transform' => 0, 'validate_user_restrict_roles' => 0, 'validate_argument_php' => '', ), )); 'operator' => 'in', 'post' => 'post', ), 'group' => '0', 'exposed' => FALSE, 'operator' => FALSE, 'label' => '', ), 'id' => 'type', 'table' => 'node', 'field' => 'type', 'button' => 'Override', ), 'relationship' => 'none', ), )); 'type' => 'none', )); 'type' => 'none', )); $handler->override_option('title', 'Blog'); $handler->override_option('use_pager', '1'); $handler->override_option('pager_element', 1); $handler->override_option('distinct', 1); $handler->override_option('row_plugin', 'node'); 'relationship' => 'none', 'build_mode' => 'teaser', 'links' => 1, 'comments' => 0, )); $handler = $view->new_display('panel_pane', 'Main', 'panel_pane_1'); $handler->override_option('pane_title', 'Blog - Main'); $handler->override_option('pane_description', ''); 'name' => 'View panes', 'weight' => 0, )); 'use_pager' => 'use_pager', 'items_per_page' => 'items_per_page', 'offset' => 'offset', 'link_to_view' => 'link_to_view', 'more_link' => 'more_link', 'path_override' => 'path_override', 'title_override' => 'title_override', 'exposed_form' => FALSE, 'fields_override' => FALSE, )); 'type' => 'panel', 'context' => 'term.description', 'context_optional' => 0, 'panel' => '0', 'fixed' => '', 'label' => 'User: Uid', ), )); $handler->override_option('link_to_view', 0); $handler->override_option('inherit_panels_path', '1'); $handler = $view->new_display('feed', 'Feed', 'feed_1'); $handler->override_option('style_plugin', 'rss'); 'mission_description' => FALSE, 'description' => '', )); $handler->override_option('row_plugin', 'node_rss'); 'relationship' => 'none', 'item_length' => 'fulltext', )); $handler->override_option('path', 'blog/%/rss.xml'); 'type' => 'none', 'title' => '', 'description' => '', 'weight' => 0, 'name' => 'navigation', )); 'type' => 'none', 'title' => '', 'description' => '', 'weight' => 0, 'name' => 'navigation', )); 'panel_pane_1' => 'panel_pane_1', 'default' => 0, )); $handler->override_option('sitename_title', FALSE);
You need to login to post a comment.
