$view = new view; $view->name = 'favorite_artists_page'; $view->description = ''; $view->tag = 'flag'; $view->view_php = ''; $view->base_table = 'node'; $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( 'votingapi_vote' => array( 'label' => 'Hlasy', 'required' => 0, 'votingapi' => array( 'value_type' => '', 'tag' => '', ), 'current_user' => TRUE, 'id' => 'votingapi_vote', 'table' => 'node', 'field' => 'votingapi_vote', 'override' => array( 'button' => 'Override', ), 'relationship' => 'none', ), 'flag_content_rel' => array( 'label' => 'flag', 'required' => 1, 'flag' => 'favorite_artist', 'user_scope' => 'current', 'id' => 'flag_content_rel', 'table' => 'node', 'field' => 'flag_content_rel', 'relationship' => 'none', ), 'uid' => array( 'label' => 'Flag user', 'required' => 0, 'id' => 'uid', 'table' => 'flag_content', 'field' => 'uid', 'relationship' => 'flag_content_rel', ), )); $handler->override_option('fields', array( 'title' => array( 'label' => 'Jméno', '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_node' => 1, 'exclude' => 0, 'id' => 'title', 'table' => 'node', 'field' => 'title', 'relationship' => 'none', ), 'weight' => 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, 'strip_tags' => 0, 'html' => 0, ), 'empty' => '', 'hide_empty' => 0, 'empty_zero' => 0, 'set_precision' => FALSE, 'precision' => 0, 'decimal' => '.', 'separator' => ',', 'prefix' => '', 'suffix' => '', 'exclude' => 0, 'id' => 'weight', 'table' => 'flag_content', 'field' => 'weight', 'relationship' => 'flag_content_rel', ), )); $handler->override_option('sorts', array( 'weight' => array( 'order' => 'ASC', 'id' => 'weight', 'table' => 'flag_content', 'field' => 'weight', 'relationship' => 'flag_content_rel', ), )); $handler->override_option('arguments', array( 'uid' => array( 'default_action' => 'default', 'style_plugin' => 'default_summary', 'style_options' => array(), 'wildcard' => 'all', 'wildcard_substitution' => 'Vše', 'title' => '', 'breadcrumb' => '', 'default_argument_type' => 'current_user', 'default_argument' => '', 'validate_type' => 'none', 'validate_fail' => 'not found', 'break_phrase' => 0, 'not' => 0, 'id' => 'uid', 'table' => 'votingapi_vote', 'field' => 'uid', 'relationship' => 'votingapi_vote', 'validate_user_argument_type' => 'uid', 'validate_user_roles' => array( '2' => 0, '3' => 0, '4' => 0, ), 'override' => array( 'button' => 'Override', ), 'default_options_div_prefix' => '', 'default_argument_user' => 0, 'default_argument_fixed' => '', 'default_argument_php' => '', 'validate_argument_node_type' => array( 'panel' => 0, 'album' => 0, 'book' => 0, 'feed' => 0, 'feed_item' => 0, 'galerie' => 0, 'interpret' => 0, 'koncert' => 0, 'misto' => 0, 'novinka' => 0, 'obrazek' => 0, 'page' => 0, 'radio' => 0, 'secret' => 0, 'skladba' => 0, 'story' => 0, 'uprofile' => 0, 'video' => 0, ), 'validate_argument_node_access' => 0, 'validate_argument_nid_type' => 'nid', 'validate_argument_vocabulary' => array( '3' => 0, '2' => 0, '5' => 0, '6' => 0, '8' => 0, '9' => 0, '10' => 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' => '', ), 'uid_1' => array( 'default_action' => 'default', 'style_plugin' => 'default_summary', 'style_options' => array(), 'wildcard' => 'all', 'wildcard_substitution' => 'Vše', 'title' => '', 'breadcrumb' => '', 'default_argument_type' => 'current_user', 'default_argument' => '', 'validate_type' => 'none', 'validate_fail' => 'not found', 'break_phrase' => 0, 'not' => 0, 'id' => 'uid_1', 'table' => 'users', 'field' => 'uid', 'validate_user_argument_type' => 'uid', 'validate_user_roles' => array( '2' => 0, '3' => 0, '4' => 0, ), 'relationship' => 'uid', 'default_options_div_prefix' => '', 'default_argument_user' => 0, 'default_argument_fixed' => '', 'default_argument_php' => '', 'validate_argument_node_type' => array( 'panel' => 0, 'album' => 0, 'book' => 0, 'feed' => 0, 'feed_item' => 0, 'galerie' => 0, 'interpret' => 0, 'koncert' => 0, 'misto' => 0, 'novinka' => 0, 'obrazek' => 0, 'page' => 0, 'radio' => 0, 'secret' => 0, 'skladba' => 0, 'story' => 0, 'uprofile' => 0, 'video' => 0, ), 'validate_argument_node_access' => 0, 'validate_argument_nid_type' => 'nid', 'validate_argument_vocabulary' => array( '3' => 0, '2' => 0, '5' => 0, '6' => 0, '8' => 0, '9' => 0, '10' => 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' => '', ), )); $handler->override_option('filters', array( 'status' => array( 'operator' => '=', 'value' => 1, 'group' => '0', 'exposed' => FALSE, 'expose' => array( 'operator' => FALSE, 'label' => '', ), 'id' => 'status', 'table' => 'node', 'field' => 'status', 'relationship' => 'none', ), 'type' => array( 'operator' => 'in', 'value' => array( 'interpret' => 'interpret', ), 'group' => '0', 'exposed' => FALSE, 'expose' => array( 'operator' => FALSE, 'label' => '', ), 'id' => 'type', 'table' => 'node', 'field' => 'type', 'relationship' => 'none', ), 'value' => array( 'operator' => '=', 'value' => array( 'value' => '1', 'min' => '', 'max' => '', ), 'group' => '0', 'exposed' => FALSE, 'expose' => array( 'operator' => FALSE, 'label' => '', ), 'id' => 'value', 'table' => 'votingapi_vote', 'field' => 'value', 'relationship' => 'votingapi_vote', ), )); $handler->override_option('access', array( 'type' => 'role', 'role' => array( '2' => 2, ), )); $handler->override_option('cache', array( 'type' => 'none', )); $handler->override_option('title', 'Moji oblíbení interpreti'); $handler->override_option('header_format', '1'); $handler->override_option('header_empty', 0); $handler->override_option('footer_format', '1'); $handler->override_option('footer_empty', 0); $handler->override_option('empty', 'Nemáte žádné oblíbené interprety, pro zvolení oblíbeného interpreta běžte na stránku interpreta a dejte mu palec nahoru. Oblíbení interpreti se potom zobrazují na vašem profilu.'); $handler->override_option('empty_format', '1'); $handler->override_option('items_per_page', 0); $handler->override_option('use_pager', '0'); $handler->override_option('style_plugin', 'draggabletable'); $handler->override_option('style_options', array( 'override' => 1, 'sticky' => 0, 'order' => 'asc', 'columns' => array( 'title' => 'title', 'weight' => 'weight', ), 'info' => array( 'title' => array( 'sortable' => 0, 'separator' => '', ), 'weight' => array( 'sortable' => 0, 'separator' => '', ), ), 'default' => -1, 'tabledrag_order' => array( 'field' => 'weight', 'handler' => 'flag_weights', ), 'tabledrag_order_visible' => array( 'visible' => 0, ), 'tabledrag_hierarchy' => array( 'field' => 'none', 'handler' => 'native', ), 'tabledrag_hierarchy_visible' => array( 'visible' => 0, ), 'draggableviews_depth_limit' => '-1', 'draggableviews_repair' => array( 'repair' => 'repair', ), 'tabledrag_types_add' => 'Add type', 'tabledrag_expand' => array( 'expand_links' => 'expand_links', 'collapsed' => 0, 'by_uid' => 0, ), 'draggableviews_extensions' => array( 'extension_top' => '3', 'extension_bottom' => '3', ), 'tabledrag_lock' => array( 'lock' => 0, ), 'draggableviews_default_on_top' => '1', 'draggableviews_button_text' => 'Save order', 'draggableviews_arguments' => array( 'use_args' => 0, ), )); $handler = $view->new_display('page', 'Page', 'page'); $handler->override_option('path', 'oblibeni-interpreti'); $handler->override_option('menu', array( 'type' => 'normal', 'title' => 'Oblíbení interpreti', 'description' => '', 'weight' => '0', 'name' => 'navigation', )); $handler->override_option('tab_options', array( 'type' => 'none', 'title' => NULL, 'description' => '', 'weight' => NULL, 'name' => 'navigation', ));