$view = new view; $view->name = 'blogs'; $view->description = 'blogs'; $view->tag = 'blogs'; $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( 'uid' => array( 'label' => 'Uid', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => 'blog/[uid]', 'alt' => 'Blog of [name]', 'prefix' => '', 'suffix' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'html' => 0, ), 'link_to_user' => 0, 'exclude' => 1, 'id' => 'uid', 'table' => 'users', 'field' => 'uid', 'relationship' => 'none', 'override' => array( 'button' => 'Override', ), ), 'name' => array( 'label' => 'Blog', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 1, 'path' => 'blog/[uid]', 'alt' => 'Blog of [Name]', 'prefix' => '', 'suffix' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'html' => 0, ), 'link_to_user' => 0, 'overwrite_anonymous' => 0, 'anonymous_text' => '', 'exclude' => 0, 'id' => 'name', 'table' => 'users', 'field' => 'name', 'relationship' => 'none', 'override' => array( 'button' => 'Override', ), ), 'title' => array( 'label' => 'Posts', '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_to_node' => 0, 'exclude' => 0, 'id' => 'title', 'table' => 'node', 'field' => 'title', 'relationship' => 'none', 'override' => array( 'button' => 'Override', ), ), 'picture' => array( 'label' => '', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 1, 'path' => 'user/[uid]', 'alt' => 'Picture of [name]', 'prefix' => '', 'suffix' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'html' => 0, ), 'exclude' => 0, 'id' => 'picture', 'table' => 'users', 'field' => 'picture', 'relationship' => 'none', ), 'type' => 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_to_node' => 0, 'exclude' => 0, 'id' => 'type', 'table' => 'node', 'field' => 'type', 'relationship' => 'none', ), 'views_sql_groupedfields' => array( 'label' => 'Group By Fields', 'alter' => array( 'alter_text' => FALSE, 'text' => '', 'make_link' => FALSE, 'path' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'trim' => FALSE, 'max_length' => '', 'word_boundary' => TRUE, 'ellipsis' => TRUE, 'html' => FALSE, ), 'exclude' => '1', 'id' => 'views_sql_groupedfields', 'table' => 'views_groupby', 'field' => 'views_sql_groupedfields', 'relationship' => 'none', 'views_groupby_fields_to_group' => array( 'users_name' => 'users_name', ), 'views_groupby_sql_function' => 'count', 'views_groupby_fields_to_aggregate' => array( 'node_title' => 'node_title', ), 'views_groupby_field_sortby' => 'users_name', 'views_groupby_sortby_direction' => 'desc', 'override' => array( 'button' => 'Override', ), ), 'view_node' => array( 'label' => 'Link', '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, ), 'text' => 'View last post', 'exclude' => 0, 'id' => 'view_node', 'table' => 'node', 'field' => 'view_node', 'override' => array( 'button' => 'Override', ), 'relationship' => 'none', ), )); $handler->override_option('filters', array( 'status_extra' => array( 'operator' => '=', 'value' => '', 'group' => '0', 'exposed' => FALSE, 'expose' => array( 'operator' => FALSE, 'label' => '', ), 'id' => 'status_extra', 'table' => 'node', 'field' => 'status_extra', 'relationship' => 'none', ), )); $handler->override_option('access', array( 'type' => 'none', )); $handler->override_option('style_plugin', 'table'); $handler->override_option('style_options', array( 'grouping' => '', 'override' => 1, 'sticky' => 0, 'order' => 'asc', 'columns' => array( 'uid' => 'uid', 'name' => 'name', 'title' => 'title', 'picture' => 'picture', 'type' => 'type', 'views_sql_groupedfields' => 'views_sql_groupedfields', ), 'info' => array( 'uid' => array( 'sortable' => 0, 'separator' => '', ), 'name' => array( 'sortable' => 0, 'separator' => '', ), 'title' => array( 'sortable' => 0, 'separator' => '', ), 'picture' => array( 'sortable' => 0, 'separator' => '', ), 'type' => array( 'sortable' => 0, 'separator' => '', ), 'views_sql_groupedfields' => array( 'separator' => '', ), ), 'default' => '-1', )); $handler = $view->new_display('page', 'Page', 'page_1'); $handler->override_option('path', 'blogs'); $handler->override_option('menu', array( 'type' => 'normal', 'title' => 'Blogs', 'description' => 'blogs', 'weight' => '0', 'name' => 'primary-links', )); $handler->override_option('tab_options', array( 'type' => 'none', 'title' => '', 'description' => '', 'weight' => 0, ));