$view = new view; $view->name = 'friends_content'; $view->description = 'Actividad reciente de mis amigos, se muestra bajo la vista Amig@s'; $view->tag = ''; $view->view_php = ''; $view->base_table = 'activity'; $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( 'type' => array( 'label' => 'Type', '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' => 'type', 'table' => 'activity', 'field' => 'type', 'relationship' => 'none', ), )); $handler->override_option('access', array( 'type' => 'role', 'role' => array( '2' => 2, ), )); $handler->override_option('cache', array( 'type' => 'none', )); $handler = $view->new_display('page', 'Page', 'page_1'); $handler->override_option('relationships', array( 'nid' => array( 'label' => 'Node', 'required' => 0, 'id' => 'nid', 'table' => 'activity', 'field' => 'nid', 'override' => array( 'button' => 'Use default', ), 'relationship' => 'none', ), 'uid' => array( 'label' => 'Usuario', 'required' => 0, 'id' => 'uid', 'table' => 'activity', 'field' => 'uid', 'override' => array( 'button' => 'Use default', ), 'relationship' => 'none', ), )); $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' => 0, 'exclude' => 1, 'id' => 'title', 'table' => 'node', 'field' => 'title', 'relationship' => 'nid', 'override' => array( 'button' => 'Use default', ), ), 'teaser' => array( 'label' => '', 'alter' => array( 'alter_text' => 1, 'text' => '[title]
[teaser]
', 'make_link' => 1, 'path' => 'node/[nid]/edit', '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' => 'nid', 'override' => array( 'button' => 'Use default', ), ), )); $handler->override_option('sorts', array( 'created' => array( 'order' => 'DESC', 'granularity' => 'second', 'id' => 'created', 'table' => 'activity', 'field' => 'created', 'override' => array( 'button' => 'Use default', ), 'relationship' => 'none', ), )); $handler->override_option('arguments', array( 'friend_uid' => array( 'default_action' => 'default', 'style_plugin' => 'default_summary', 'style_options' => array(), 'wildcard' => 'all', 'wildcard_substitution' => 'Todos', 'title' => '', 'breadcrumb' => '', 'default_argument_type' => 'current_user', 'default_argument' => '', 'validate_type' => 'none', 'validate_fail' => 'not found', 'break_phrase' => 0, 'not' => 0, 'id' => 'friend_uid', 'table' => 'flag_friend', 'field' => 'friend_uid', 'relationship' => 'uid', 'validate_user_argument_type' => 'uid', 'validate_user_roles' => array( '2' => 0, '4' => 0, '3' => 0, '5' => 0, ), 'override' => array( 'button' => 'Use default', ), 'default_options_div_prefix' => '', 'default_argument_fixed' => '', 'default_argument_user' => 0, 'default_argument_php' => '', 'validate_argument_node_type' => array( 'forum' => 0, 'article' => 0, 'course' => 0, 'cyl_center' => 0, 'event' => 0, 'grupo' => 0, 'image' => 0, 'interview' => 0, 'library' => 0, 'page' => 0, 'poll' => 0, 'profile' => 0, 'program' => 0, 'program_page' => 0, 'story' => 0, 'thematic' => 0, 'video' => 0, ), 'validate_argument_node_access' => 0, 'validate_argument_nid_type' => 'nid', 'validate_argument_vocabulary' => array( '1' => 0, '10' => 0, '11' => 0, '2' => 0, '8' => 0, '5' => 0, '9' => 0, '4' => 0, '7' => 0, '6' => 0, ), 'validate_argument_type' => 'tid', 'validate_argument_transform' => 0, 'validate_user_restrict_roles' => 0, '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_argument_is_member' => 'OG_VIEWS_DO_NOT_VALIDATE_MEMBERSHIP', 'validate_argument_group_node_type' => array( 'grupo' => 0, ), 'validate_argument_php' => '', ), )); $handler->override_option('filters', array( 'type' => array( 'operator' => 'in', 'value' => array( 'forum' => 'forum', 'article' => 'article', 'image' => 'image', 'story' => 'story', 'video' => 'video', ), 'group' => '0', 'exposed' => FALSE, 'expose' => array( 'operator' => FALSE, 'label' => '', ), 'id' => 'type', 'table' => 'node', 'field' => 'type', 'relationship' => 'nid', 'override' => array( 'button' => 'Use default', ), ), )); $handler->override_option('items_per_page', 5); $handler->override_option('style_plugin', 'grid'); $handler->override_option('style_options', array( 'grouping' => '', 'columns' => '1', 'alignment' => 'horizontal', )); $handler->override_option('path', 'actividad-reciente'); $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', ));