$view = new view; $view->name = 'all_activity_friends'; $view->description = 'All activity friends on a site in profil user'; $view->tag = 'activity'; $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('relationships', array( 'uid' => array( 'label' => 'Membre', 'required' => 0, 'id' => 'uid', 'table' => 'activity', 'field' => 'uid', 'relationship' => 'none', ), )); $handler->override_option('fields', array( 'message' => 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, ), 'exclude' => 0, 'id' => 'message', 'table' => 'activity_messages', 'field' => 'message', 'relationship' => 'none', ), )); $handler->override_option('sorts', array( 'aid' => array( 'order' => 'DESC', 'id' => 'aid', 'table' => 'activity', 'field' => 'aid', 'relationship' => 'none', ), )); $handler->override_option('arguments', array( 'uid' => array( 'default_action' => 'default', 'style_plugin' => 'default_summary', 'style_options' => array(), 'wildcard' => 'all', 'wildcard_substitution' => 'Tous', 'title' => '', 'breadcrumb' => '', 'default_argument_type' => 'user', 'default_argument' => '', 'validate_type' => 'none', 'validate_fail' => 'not found', 'break_phrase' => 0, 'not' => 0, 'id' => 'uid', 'table' => 'activity', 'field' => 'uid', 'validate_user_argument_type' => 'uid', 'validate_user_roles' => array( '2' => 0, '4' => 0, '5' => 0, '3' => 0, ), 'relationship' => 'none', 'default_options_div_prefix' => '', 'default_argument_user' => 0, 'default_argument_fixed' => '', 'default_argument_php' => '', 'validate_argument_node_type' => array( 'panel' => 0, 'groupes' => 0, 'groupes_membres' => 0, 'page' => 0, 'profile' => 0, 'story' => 0, ), 'validate_argument_node_access' => 0, 'validate_argument_nid_type' => 'nid', 'validate_argument_vocabulary' => array(), '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' => 0, 'validate_argument_signup_status' => 'any', 'validate_argument_signup_node_access' => 0, 'validate_argument_php' => '', ), )); $handler->override_option('filters', array( 'value_flag_friend' => array( 'operator' => '=', 'value' => '', 'group' => '0', 'exposed' => FALSE, 'expose' => array( 'operator' => FALSE, 'label' => '', ), 'realms' => array( 'flag_friend' => 'flag_friend', ), 'id' => 'value_flag_friend', 'table' => 'activity_access', 'field' => 'value_flag_friend', 'relationship' => 'none', ), )); $handler->override_option('access', array( 'type' => 'none', )); $handler->override_option('cache', array( 'type' => 'none', )); $handler->override_option('use_ajax', TRUE); $handler->override_option('items_per_page', 25); $handler->override_option('use_pager', '1'); $handler->override_option('distinct', 0); $handler = $view->new_display('page', 'Page', 'page_1'); $handler->override_option('path', 'activity/%/friends'); $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, )); $handler = $view->new_display('panel_pane', 'Content pane', 'panel_pane_1'); $handler->override_option('pane_title', ''); $handler->override_option('pane_description', ''); $handler->override_option('pane_category', array( 'name' => 'View panes', 'weight' => 0, )); $handler->override_option('allow', array( '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, )); $handler->override_option('argument_input', array( 'uid' => array( 'type' => 'context', 'context' => 'node.uid', 'context_optional' => 0, 'panel' => '0', 'fixed' => '', 'label' => 'Activity : Activity Actor', ), 'uid_1' => array( 'type' => 'context', 'context' => 'user.uid', 'context_optional' => 0, 'panel' => '0', 'fixed' => '', 'label' => 'Membre : Uid', ), )); $handler->override_option('link_to_view', 0); $handler->override_option('inherit_panels_path', '1');