$view = new view; $view->name = 'status_updates'; $view->description = 'Flag Friend Status'; $view->tag = 'facebook_status'; $view->view_php = ''; $view->base_table = 'users'; $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( 'flag_friend_content_rel' => array( 'label' => 'flag friend', 'required' => 0, 'flag' => 'friend', 'user_scope' => 'current', 'id' => 'flag_friend_content_rel', 'table' => 'users', 'field' => 'flag_friend_content_rel', 'relationship' => 'none', ), )); $handler->override_option('fields', array( 'pid_pic' => 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, 'imagecache_preset' => 'profile_small', 'exclude' => 0, 'id' => 'pid_pic', 'table' => 'facebook_status', 'field' => 'pid_pic', 'override' => array( 'button' => 'Override', ), 'relationship' => 'none', ), 'pid_name' => 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_user' => 1, 'exclude' => 0, 'id' => 'pid_name', 'table' => 'facebook_status', 'field' => 'pid_name', 'override' => array( 'button' => 'Override', ), 'relationship' => 'none', ), 'status' => 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, 'exclude' => 0, 'id' => 'status', 'table' => 'facebook_status', 'field' => 'status', 'override' => array( 'button' => 'Override', ), 'relationship' => 'none', ), 'attachment' => 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, 'exclude' => 0, 'id' => 'attachment', 'table' => 'fbsmp', 'field' => 'attachment', 'relationship' => 'none', ), 'status_time' => 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, 'date_format' => 'themed', 'custom_date_format' => '', 'exclude' => 0, 'id' => 'status_time', 'table' => 'facebook_status', 'field' => 'status_time', 'override' => array( 'button' => 'Override', ), 'relationship' => 'none', ), 'delete' => 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, 'exclude' => 0, 'id' => 'delete', 'table' => 'facebook_status', 'field' => 'delete', 'override' => array( 'button' => 'Override', ), 'relationship' => 'none', ), 'comment-box' => 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, 'exclude' => 0, 'id' => 'comment-box', 'table' => 'facebook_status', 'field' => 'comment-box', 'override' => array( 'button' => 'Override', ), 'relationship' => 'none', ), )); $handler->override_option('sorts', array( 'status_time' => array( 'order' => 'DESC', 'id' => 'status_time', 'table' => 'facebook_status', 'field' => 'status_time', 'relationship' => 'none', ), )); $handler->override_option('arguments', array( 'friend_uid' => array( 'default_action' => 'ignore', 'style_plugin' => 'default_summary', 'style_options' => array(), 'wildcard' => 'all', 'wildcard_substitution' => 'All', 'title' => '', 'breadcrumb' => '', 'default_argument_type' => 'php', 'default_argument' => '', 'validate_type' => 'php', 'validate_fail' => 'not found', 'break_phrase' => 0, 'not' => 0, 'id' => 'friend_uid', 'table' => 'flag_friend', 'field' => 'friend_uid', 'validate_user_argument_type' => 'uid', 'validate_user_roles' => array( '2' => 0, '5' => 0, '3' => 0, '8' => 0, '6' => 0, '4' => 0, '7' => 0, ), 'relationship' => 'none', 'default_options_div_prefix' => '', 'default_argument_fixed' => '', 'default_argument_user' => 0, 'default_argument_php' => '', 'validate_argument_node_type' => array( 'product' => 0, 'forum' => 0, 'advertising' => 0, 'article' => 0, 'book' => 0, 'equipment' => 0, 'event' => 0, 'finance' => 0, 'group' => 0, 'jobs' => 0, 'page' => 0, 'profile' => 0, 'projects' => 0, ), 'validate_argument_node_access' => 0, 'validate_argument_nid_type' => 'nid', 'validate_argument_vocabulary' => array( '1' => 0, '18' => 0, '4' => 0, '2' => 0, '3' => 0, '5' => 0, '10' => 0, '8' => 0, '11' => 0, '12' => 0, '13' => 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( 'group' => 0, 'projects' => 0, ), 'validate_argument_php' => '$account = user_load(array(\'name\' => $argument)); if ($account->uid) { $handler->argument = $account->uid; return TRUE; } return FALSE;', ), )); $handler->override_option('filters', array( 'sid_extra' => array( 'operator' => '=', 'value' => '0', 'group' => '0', 'exposed' => FALSE, 'expose' => array( 'operator' => FALSE, 'label' => '', ), 'id' => 'sid_extra', 'table' => 'facebook_status', 'field' => 'sid_extra', 'relationship' => 'none', ), 'pid_extra_3' => array( 'operator' => '=', 'value' => '0', 'group' => '0', 'exposed' => FALSE, 'expose' => array( 'operator' => FALSE, 'label' => '', ), 'id' => 'pid_extra_3', 'table' => 'facebook_status', 'field' => 'pid_extra_3', 'relationship' => 'none', ), )); $handler->override_option('access', array( 'type' => 'none', )); $handler->override_option('cache', array( 'type' => 'none', )); $handler->override_option('style_plugin', 'table'); $handler->override_option('style_options', array( 'grouping' => '', 'override' => 1, 'sticky' => 0, 'order' => 'asc', 'columns' => array( 'pid_pic' => 'pid_pic', 'pid_name' => 'pid_name', 'status' => 'pid_name', 'attachment' => 'pid_name', 'status_time' => 'pid_name', 'delete' => 'pid_name', 'comment-box' => 'pid_name', ), 'info' => array( 'pid_pic' => array( 'separator' => '', ), 'pid_name' => array( 'separator' => '
', ), 'status' => array( 'sortable' => 0, 'separator' => '', ), 'attachment' => array( 'separator' => '', ), 'status_time' => array( 'sortable' => 0, 'separator' => '', ), 'delete' => array( 'separator' => '', ), 'comment-box' => array( 'separator' => '', ), ), 'default' => '-1', )); $handler = $view->new_display('page', 'Page', 'page_1'); $handler->override_option('path', 'testfriends'); $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', ));