$view = new view; $view->name = 'friends_status'; $view->description = 'Friends\' Statuses'; $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('fields', array( 'name' => 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, 'strip_tags' => 0, 'html' => 0, ), 'link_to_user' => 1, 'overwrite_anonymous' => 0, 'anonymous_text' => '', 'exclude' => 1, 'id' => 'name', 'table' => 'users', 'field' => 'name', 'relationship' => 'none', ), 'status_time' => 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, 'strip_tags' => 0, 'html' => 0, ), 'date_format' => 'time ago', 'custom_date_format' => '1', 'exclude' => 1, 'id' => 'status_time', 'table' => 'facebook_status', 'field' => 'status_time', 'relationship' => 'none', ), 'status' => array( 'label' => '', 'alter' => array( 'alter_text' => 1, 'text' => '[name] [status] [status_time]', 'make_link' => 0, 'path' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'strip_tags' => 0, 'html' => 0, ), 'exclude' => 0, 'id' => 'status', 'table' => 'facebook_status', 'field' => 'status', 'relationship' => 'none', ), )); $handler->override_option('sorts', array( 'sid' => array( 'order' => 'DESC', 'id' => 'sid', 'table' => 'facebook_status', 'field' => 'sid', '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' => '', 'default_argument_type' => 'fixed', '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, '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, 'page' => 0, ), 'validate_argument_node_access' => 0, 'validate_argument_nid_type' => 'nid', 'validate_argument_vocabulary' => array( '1' => 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_php' => '$account = user_load(array(\'name\' => $argument)); if ($account->uid) { $handler->argument = $account->uid; return TRUE; } return FALSE;', ), )); $handler->override_option('filters', array( 'status' => array( 'operator' => '!=', 'value' => '', 'group' => '0', 'exposed' => FALSE, 'expose' => array( 'operator' => FALSE, 'label' => '', ), 'case' => 1, 'id' => 'status', 'table' => 'facebook_status', 'field' => 'status', 'relationship' => 'none', ), 'pid_extra_3' => array( 'operator' => '=', 'value' => '1', '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' => 'perm', 'perm' => 'view all statuses', )); $handler->override_option('cache', array( 'type' => 'none', )); $handler->override_option('title', 'Friends\' Statuses'); $handler->override_option('use_ajax', TRUE); $handler->override_option('items_per_page', 15); $handler->override_option('use_pager', '1'); $handler->override_option('style_plugin', 'table'); $handler->override_option('style_options', array( 'grouping' => '', 'override' => 1, 'sticky' => 0, 'order' => 'asc', 'columns' => array( 'name' => 'name', 'status_time' => 'status_time', 'status' => 'status', ), 'info' => array( 'name' => array( 'sortable' => 0, 'separator' => '', ), 'status_time' => array( 'sortable' => 0, 'separator' => '', ), 'status' => array( 'sortable' => 0, 'separator' => '', ), ), 'default' => '-1', )); $handler = $view->new_display('page', 'Page', 'page_1'); $handler->override_option('path', 'statuses/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, 'name' => 'navigation', )); $handler = $view->new_display('block', 'Block', 'block_1'); $handler->override_option('items_per_page', 10); $handler->override_option('use_more', 1); $handler->override_option('block_description', ''); $handler->override_option('block_caching', -1);