$view = new view; $view->name = 'user_relationships'; $view->description = 'Friends\' avatars'; $view->tag = 'user_relationships'; $view->view_php = ''; $view->base_table = 'user_relationships'; $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( 'requestee_id' => array( 'label' => 'requestee', 'required' => 0, 'id' => 'requestee_id', 'table' => 'user_relationships', 'field' => 'requestee_id', 'relationship' => 'none', ), 'requester_id' => array( 'label' => 'requester', 'required' => 0, 'id' => 'requester_id', 'table' => 'user_relationships', 'field' => 'requester_id', 'relationship' => 'none', ), 'rtid' => array( 'label' => 'rtid', 'required' => 0, 'id' => 'rtid', 'table' => 'user_relationships', 'field' => 'rtid', 'relationship' => 'none', ), )); $handler->override_option('fields', array( 'name' => array( 'label' => '', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'strip_tags' => 0, 'html' => 0, ), 'link_to_user' => 1, 'overwrite_anonymous' => 0, 'anonymous_text' => '', 'exclude' => 0, 'id' => 'name', 'table' => 'users', 'field' => 'name', 'relationship' => 'requestee_id', 'override' => array( 'button' => 'Override', ), ), 'picture' => array( 'label' => '', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'strip_tags' => 0, 'html' => 0, ), 'imagecache_preset' => '6', 'exclude' => 0, 'id' => 'picture', 'table' => 'users', 'field' => 'picture', 'relationship' => 'requestee_id', ), )); $handler->override_option('sorts', array( 'plural_name' => array( 'order' => 'ASC', 'id' => 'plural_name', 'table' => 'user_relationship_types', 'field' => 'plural_name', 'relationship' => 'rtid', ), )); $handler->override_option('arguments', array( 'requester_id' => array( 'default_action' => 'default', 'style_plugin' => 'default_summary', 'style_options' => array(), 'wildcard' => 'all', 'wildcard_substitution' => 'All', 'title' => '', 'breadcrumb' => '', 'default_argument_type' => 'php', 'default_argument' => '', 'validate_type' => 'numeric', 'validate_fail' => 'not found', 'break_phrase' => 0, 'not' => 0, 'id' => 'requester_id', 'table' => 'user_relationships', 'field' => 'requester_id', 'override' => array( 'button' => 'Override', ), 'relationship' => 'none', 'default_options_div_prefix' => '', 'default_argument_user' => 0, 'default_argument_fixed' => '', 'default_argument_php' => ' if (arg(0) == \'node\' && is_numeric(arg(1))) { $node = node_load(arg(1)); return $node->uid; } else if ((arg(0) == \'user\' || arg(0) == \'blog\') && is_numeric(arg(1))) { return arg(1); }', 'validate_argument_node_type' => array( 'blog' => 0, 'forum' => 0, 'group' => 0, 'node_gallery_gallery' => 0, 'node_gallery_image' => 0, ), 'validate_argument_node_access' => 0, 'validate_argument_nid_type' => 'nid', 'validate_argument_vocabulary' => array( '1' => 0, ), 'validate_argument_type' => 'tid', 'validate_argument_php' => '', 'validate_user_argument_type' => 'uid', 'validate_user_roles' => array( '2' => 0, ), '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, ), )); $handler->override_option('filters', array( 'approved' => array( 'operator' => '=', 'value' => '1', 'group' => '0', 'exposed' => FALSE, 'expose' => array( 'operator' => FALSE, 'label' => '', ), 'id' => 'approved', 'table' => 'user_relationships', 'field' => 'approved', 'relationship' => 'none', ), )); $handler->override_option('access', array( 'type' => 'none', )); $handler->override_option('cache', array( 'type' => 'none', )); $handler->override_option('title', 'Friends gallery'); $handler->override_option('header_format', '1'); $handler->override_option('header_empty', 0); $handler->override_option('items_per_page', 9); $handler->override_option('use_pager', 'mini'); $handler->override_option('style_plugin', 'grid'); $handler->override_option('style_options', array( 'grouping' => '', 'columns' => '4', 'alignment' => 'horizontal', )); $handler->override_option('row_options', array( 'inline' => array( 'name_1' => 'name_1', ), 'separator' => ', ', )); $handler = $view->new_display('block', 'Block', 'block_1'); $handler->override_option('block_description', ''); $handler->override_option('block_caching', -1);