$view = new view; $view->name = 'twitter_feed'; $view->description = ''; $view->tag = ''; $view->view_php = ''; $view->base_table = 'aggregator_item'; $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( 'link' => 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, 'display_as_link' => 0, 'exclude' => 1, 'id' => 'link', 'table' => 'aggregator_item', 'field' => 'link', 'relationship' => 'none', ), 'phpcode' => 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, 'value' => 'aggregator_item_link; $parts = split(\'/\', str_replace(\'http://twitter.com/\', \'\', $link)); return l(\'@\' . $parts[0], \'http://twitter.com/\' . $parts[0]) . \':\'; ?>', 'exclude' => 0, 'id' => 'phpcode', 'table' => 'customfield', 'field' => 'phpcode', 'relationship' => 'none', ), 'description_1' => array( 'label' => '', 'alter' => array( 'alter_text' => 1, 'text' => '[description_1] (link)', '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' => 'description_1', 'table' => 'aggregator_item', 'field' => 'description', 'relationship' => 'none', ), )); $handler->override_option('sorts', array( 'timestamp' => array( 'order' => 'DESC', 'granularity' => 'second', 'id' => 'timestamp', 'table' => 'aggregator_item', 'field' => 'timestamp', 'relationship' => 'none', ), )); $handler->override_option('filters', array( 'title' => array( 'operator' => '=', 'value' => 'twitter', 'group' => '0', 'exposed' => FALSE, 'expose' => array( 'operator' => FALSE, 'label' => '', ), 'case' => 1, 'id' => 'title', 'table' => 'aggregator_category', 'field' => 'title', 'relationship' => 'none', ), )); $handler->override_option('access', array( 'type' => 'none', )); $handler->override_option('cache', array( 'type' => 'none', )); $handler->override_option('footer', 'View on Twitter'); $handler->override_option('footer_format', '1'); $handler->override_option('footer_empty', 0); $handler->override_option('items_per_page', 5); $handler->override_option('style_plugin', 'list'); $handler->override_option('style_options', array( 'grouping' => '', 'type' => 'ul', )); $handler->override_option('row_options', array( 'inline' => array( 'phpcode' => 'phpcode', 'description_1' => 'description_1', 'link_1' => 'link_1', ), 'separator' => '', 'hide_empty' => 0, )); $handler = $view->new_display('block', 'Block', 'block_1'); $handler->override_option('title', 'From Twitter'); $handler->override_option('use_more', 0); $handler->override_option('use_more_always', 0); $handler->override_option('use_more_text', 'View on twitter'); $handler->override_option('block_description', ''); $handler->override_option('block_caching', -1);