$view = new view; $view->name = 'test30'; $view->description = ''; $view->tag = ''; $view->base_table = 'term_data'; $view->core = 0; $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( 'parent' => array( 'label' => 'Parent', 'required' => 0, 'id' => 'parent', 'table' => 'term_hierarchy', 'field' => 'parent', 'relationship' => 'none', 'override' => array( 'button' => 'Override', ), ), )); $handler->override_option('fields', array( 'name' => 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, 'link_to_taxonomy' => 1, 'exclude' => 0, 'id' => 'name', 'table' => 'term_data', 'field' => 'name', 'relationship' => 'none', 'override' => array( 'button' => 'Override', ), ), 'tid' => array( 'label' => 'Term ID', '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, 'set_precision' => FALSE, 'precision' => 0, 'decimal' => '.', 'separator' => ',', 'format_plural' => 0, 'format_plural_singular' => '1', 'format_plural_plural' => '@count', 'prefix' => '', 'suffix' => '', 'exclude' => 1, 'id' => 'tid', 'table' => 'term_data', 'field' => 'tid', 'relationship' => 'none', 'override' => array( 'button' => 'Override', ), ), )); $handler->override_option('sorts', array( 'weight' => array( 'order' => 'DESC', 'id' => 'weight', 'table' => 'term_data', 'field' => 'weight', 'override' => array( 'button' => 'Override', ), 'relationship' => 'parent', ), )); $handler->override_option('arguments', array( 'tid' => array( 'default_action' => 'default', 'style_plugin' => 'default_summary', 'style_options' => array(), 'wildcard' => 'all', 'wildcard_substitution' => 'All', 'title' => '', 'breadcrumb' => '', 'default_argument_type' => 'taxonomy_tid', 'default_argument' => '', 'validate_type' => 'taxonomy_term', 'validate_fail' => 'not found', 'break_phrase' => 0, 'not' => 0, 'id' => 'tid', 'table' => 'term_data', 'field' => 'tid', 'validate_user_argument_type' => 'uid', 'validate_user_roles' => array( 2 => 0, 3 => 0, 5 => 0, 9 => 0, ), 'relationship' => 'none', 'default_options_div_prefix' => '', 'default_argument_user' => 0, 'default_argument_fixed' => '', 'default_argument_php' => '', 'validate_argument_node_type' => array( 'bet' => 0, 'bookies' => 0, 'calevent' => 0, 'forumpost' => 0, 'mega_menu' => 0, 'mega_menu_element' => 0, 'notitle' => 0, 'page' => 0, 'profile' => 0, 'push' => 0, 'webform' => 0, ), 'validate_argument_node_access' => 0, 'validate_argument_nid_type' => 'nid', 'validate_argument_vocabulary' => array( 158 => 0, 162 => 0, 157 => 0, 160 => 0, 159 => 0, 161 => 0, 163 => 0, ), 'validate_argument_type' => 'tid', 'validate_argument_transform' => 0, 'validate_user_restrict_roles' => 0, 'validate_argument_php' => '', 'override' => array( 'button' => 'Override', ), 'default_taxonomy_tid_term_page' => 1, 'default_taxonomy_tid_node' => 0, 'default_taxonomy_tid_limit' => 0, 'default_taxonomy_tid_vids' => array( 158 => 0, 162 => 0, 157 => 0, 160 => 0, 159 => 0, 161 => 0, 163 => 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', ), )); $handler->override_option('access', array( 'type' => 'none', )); $handler->override_option('cache', array( 'type' => 'none', )); $handler->override_option('style_plugin', 'grid'); $handler->override_option('style_options', array( 'grouping' => '', 'columns' => '6', 'alignment' => 'horizontal', 'fill_single_line' => 1, 'summary' => '', )); $handler->override_option('row_options', array( 'inline' => array( 'name' => 'name', 'tid' => 'tid', 'description' => 'description', ), 'separator' => '', 'hide_empty' => 0, )); $handler = $view->new_display('block', 'Block', 'block_1'); $handler->override_option('arguments', array( 'tid' => array( 'default_action' => 'default', 'style_plugin' => 'default_summary', 'style_options' => array(), 'wildcard' => 'all', 'wildcard_substitution' => 'All', 'title' => 'see within...', 'breadcrumb' => '', 'default_argument_type' => 'taxonomy_tid', 'default_argument' => '', 'validate_type' => 'taxonomy_term', 'validate_fail' => 'not found', 'break_phrase' => 0, 'not' => 0, 'id' => 'tid', 'table' => 'term_data', 'field' => 'tid', 'validate_user_argument_type' => 'uid', 'validate_user_roles' => array( 2 => 0, 3 => 0, 5 => 0, 9 => 0, ), 'relationship' => 'parent', 'default_options_div_prefix' => '', 'default_argument_user' => 0, 'default_argument_fixed' => '', 'default_argument_php' => '', 'validate_argument_node_type' => array( 'bet' => 0, 'bookies' => 0, 'calevent' => 0, 'forumpost' => 0, 'link' => 0, 'notitle' => 0, 'page' => 0, 'pictures' => 0, 'profile' => 0, 'push' => 0, 'tagdesc' => 0, 'vids' => 0, 'webform' => 0, ), 'validate_argument_node_access' => 0, 'validate_argument_nid_type' => 'nid', 'validate_argument_vocabulary' => array( 165 => 0, 162 => 0, 158 => 0, 157 => 0, 160 => 0, 159 => 0, 161 => 0, 163 => 0, 164 => 0, ), 'validate_argument_type' => 'tid', 'validate_argument_transform' => 0, 'validate_user_restrict_roles' => 0, 'validate_argument_php' => '', 'override' => array( 'button' => 'Use default', ), 'default_taxonomy_tid_term_page' => 1, 'default_taxonomy_tid_node' => 0, 'default_taxonomy_tid_limit' => 0, 'default_taxonomy_tid_vids' => array( 165 => 0, 162 => 0, 158 => 0, 157 => 0, 160 => 0, 159 => 0, 161 => 0, 163 => 0, 164 => 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', ), )); $handler->override_option('css_class', 'usertag'); $handler->override_option('items_per_page', 0); $handler->override_option('style_options', array( 'grouping' => '', 'columns' => '7', 'alignment' => 'horizontal', 'fill_single_line' => 1, 'summary' => '', )); $handler->override_option('exposed_block', TRUE); $handler->override_option('block_description', 'kidterm30'); $handler->override_option('block_caching', '-1'); $handler = $view->new_display('block', 'Block', 'block_2'); $handler->override_option('relationships', array( 'tid2' => array( 'label' => 'Related term', 'required' => 1, 'id' => 'tid2', 'table' => 'term_relation', 'field' => 'tid2', 'override' => array( 'button' => 'Use default', ), 'relationship' => 'none', ), )); $handler->override_option('fields', array( 'name' => 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, 'link_to_taxonomy' => 1, 'exclude' => 0, 'id' => 'name', 'table' => 'term_data', 'field' => 'name', 'relationship' => 'none', 'override' => array( 'button' => 'Override', ), ), 'tid' => array( 'label' => 'Term ID', '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, 'set_precision' => FALSE, 'precision' => 0, 'decimal' => '.', 'separator' => ',', 'format_plural' => 0, 'format_plural_singular' => '1', 'format_plural_plural' => '@count', 'prefix' => '', 'suffix' => '', 'exclude' => 0, 'id' => 'tid', 'table' => 'term_data', 'field' => 'tid', 'relationship' => 'tid2', 'override' => array( 'button' => 'Use default', ), ), 'name_1' => array( 'label' => 'Term', '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, 'link_to_taxonomy' => 0, 'exclude' => 0, 'id' => 'name_1', 'table' => 'term_data', 'field' => 'name', 'override' => array( 'button' => 'Use default', ), 'relationship' => 'tid2', ), )); $handler->override_option('arguments', array( 'tid' => array( 'default_action' => 'default', 'style_plugin' => 'default_summary', 'style_options' => array(), 'wildcard' => 'all', 'wildcard_substitution' => 'All', 'title' => '', 'breadcrumb' => '', 'default_argument_type' => 'php', 'default_argument' => '', 'validate_type' => 'none', 'validate_fail' => 'not found', 'break_phrase' => 0, 'not' => 0, 'id' => 'tid', 'table' => 'term_data', 'field' => 'tid', 'validate_user_argument_type' => 'uid', 'validate_user_roles' => array( 2 => 0, 3 => 0, 5 => 0, 9 => 0, ), 'override' => array( 'button' => 'Use default', ), 'relationship' => 'none', 'default_options_div_prefix' => '', 'default_taxonomy_tid_term_page' => 1, 'default_taxonomy_tid_node' => 0, 'default_taxonomy_tid_limit' => 0, 'default_taxonomy_tid_vids' => array( 162 => 0, 158 => 0, 157 => 0, 160 => 0, 159 => 0, 161 => 0, 163 => 0, ), 'default_argument_user' => 0, 'default_argument_fixed' => '', 'default_argument_php' => '$list = array($argument); foreach (taxonomy_get_related($argument) as $term) { $list[] = $term->tid; } $handler->argument = implode(\'+\', $list); return TRUE; ', 'validate_argument_node_type' => array( 'bet' => 0, 'bookies' => 0, 'calevent' => 0, 'forumpost' => 0, 'mega_menu' => 0, 'mega_menu_element' => 0, 'notitle' => 0, 'page' => 0, 'profile' => 0, 'push' => 0, 'webform' => 0, ), 'validate_argument_node_access' => 0, 'validate_argument_nid_type' => 'nid', 'validate_argument_vocabulary' => array( 162 => 0, 158 => 0, 157 => 0, 160 => 0, 159 => 0, 161 => 0, 163 => 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('empty', 'this should show related tags'); $handler->override_option('empty_format', '9'); $handler->override_option('block_description', 'relterm'); $handler->override_option('block_caching', -1); $handler = $view->new_display('block', 'Block', 'block_3'); $handler->override_option('arguments', array( 'tid' => array( 'default_action' => 'default', 'style_plugin' => 'default_summary', 'style_options' => array(), 'wildcard' => 'all', 'wildcard_substitution' => 'All', 'title' => '', 'breadcrumb' => '', 'default_argument_type' => 'taxonomy_tid', 'default_argument' => '', 'validate_type' => 'taxonomy_term', 'validate_fail' => 'not found', 'break_phrase' => 0, 'not' => 0, 'id' => 'tid', 'table' => 'term_data', 'field' => 'tid', 'validate_user_argument_type' => 'uid', 'validate_user_roles' => array( 2 => 0, 3 => 0, 5 => 0, 9 => 0, ), 'relationship' => 'parent', 'default_options_div_prefix' => '', 'default_argument_user' => 0, 'default_argument_fixed' => '', 'default_argument_php' => '', 'validate_argument_node_type' => array( 'bet' => 0, 'bookies' => 0, 'calevent' => 0, 'forumpost' => 0, 'mega_menu' => 0, 'mega_menu_element' => 0, 'notitle' => 0, 'page' => 0, 'profile' => 0, 'push' => 0, 'webform' => 0, ), 'validate_argument_node_access' => 0, 'validate_argument_nid_type' => 'nid', 'validate_argument_vocabulary' => array( 162 => 0, 158 => 0, 157 => 0, 160 => 0, 159 => 0, 161 => 0, 163 => 0, ), 'validate_argument_type' => 'tid', 'validate_argument_transform' => 0, 'validate_user_restrict_roles' => 0, 'validate_argument_php' => '', 'override' => array( 'button' => 'Use default', ), 'default_taxonomy_tid_term_page' => 0, 'default_taxonomy_tid_node' => 1, 'default_taxonomy_tid_limit' => 0, 'default_taxonomy_tid_vids' => array( 162 => 0, 158 => 0, 157 => 0, 160 => 0, 159 => 0, 161 => 0, 163 => 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', ), )); $handler->override_option('style_options', array( 'grouping' => '', 'columns' => '5', 'alignment' => 'horizontal', 'fill_single_line' => 1, 'summary' => '', )); $handler->override_option('block_description', 'kidtermnode'); $handler->override_option('block_caching', -1); $handler = $view->new_display('block', 'Block', 'block_4'); $handler->override_option('arguments', array()); $handler->override_option('items_per_page', 0); $handler->override_option('style_options', array( 'grouping' => '', 'columns' => '4', 'alignment' => 'horizontal', 'fill_single_line' => 1, 'summary' => '', )); $handler->override_option('block_description', 'kidterm'); $handler->override_option('block_caching', -1);