$view = new view; $view->name = 'station_recent_tracks'; $view->description = 'Listing of tracks recently played stationwide'; $view->tag = 'station_recent tracks'; $view->base_table = 'node'; $view->core = 6; $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( 'station_program_iid' => array( 'id' => 'station_program_iid', 'table' => 'node', 'field' => 'station_program_iid', ), )); $handler->override_option('fields', array( 'artist' => array( 'label' => '', 'alter' => array( 'alter_text' => 1, 'text' => '[artist]', 'make_link' => 0, 'path' => '', 'absolute' => 0, 'link_class' => '', 'alt' => '', 'rel' => '', '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, 'hide_alter_empty' => 1, 'exclude' => 0, 'id' => 'artist', 'table' => 'station_playlist_track', 'field' => 'artist', 'relationship' => 'none', ), 'title' => array( 'label' => '', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'absolute' => 0, 'link_class' => '', 'alt' => '', 'rel' => '', '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, 'hide_alter_empty' => 1, 'exclude' => 0, 'id' => 'title', 'table' => 'station_playlist_track', 'field' => 'title', 'relationship' => 'none', ), )); $handler->override_option('sorts', array( 'weight' => array( 'order' => 'DESC', 'id' => 'weight', 'table' => 'station_playlist_track', 'field' => 'weight', 'relationship' => 'none', ), )); $handler->override_option('filters', array( 'type' => array( 'operator' => 'in', 'value' => array( 'station_playlist' => 'station_playlist', ), 'group' => '0', 'exposed' => FALSE, 'expose' => array( 'operator' => FALSE, 'label' => '', ), 'id' => 'type', 'table' => 'node', 'field' => 'type', 'relationship' => 'none', ), )); $handler->override_option('access', array( 'type' => 'perm', 'perm' => 'view station playlist content', )); $handler->override_option('cache', array( 'type' => 'none', )); $handler->override_option('items_per_page', 5); $handler->override_option('style_options', array( 'grouping' => '', )); $handler->override_option('row_options', array( 'inline' => array( 'artist' => 'artist', 'title' => 'title', ), 'separator' => ' - ', 'hide_empty' => 0, )); $handler = $view->new_display('block', 'Block', 'block_1'); $handler->override_option('relationships', array()); $handler->override_option('sorts', array( 'nid' => array( 'order' => 'DESC', 'id' => 'nid', 'table' => 'node', 'field' => 'nid', 'override' => array( 'button' => 'Use default', ), 'relationship' => 'none', ), 'weight' => array( 'order' => 'DESC', 'id' => 'weight', 'table' => 'station_playlist_track', 'field' => 'weight', 'override' => array( 'button' => 'Use default', ), 'relationship' => 'none', ), )); $handler->override_option('items_per_page', 6); $handler->override_option('use_more', 0); $handler->override_option('use_more_always', 0); $handler->override_option('block_description', ''); $handler->override_option('block_caching', -1);