name = 'advanced_forum_search'; $view->description = 'Search the forums'; $view->tag = 'Advanced Forum'; $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( 'nid_or_self' => array( 'label' => 'parent', 'id' => 'nid_or_self', 'table' => 'node_comments', 'field' => 'nid_or_self', 'override' => array( 'button' => 'Override', ), 'relationship' => 'none', ), )); $handler->override_option('fields', array( 'title' => array( 'label' => '', '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' => 0, 'exclude' => 1, 'id' => 'title', 'table' => 'node', 'field' => 'title', 'relationship' => 'none', ), 'nodecomment_link' => array( 'label' => '', '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, ), 'text' => '[title]', 'exclude' => 0, 'id' => 'nodecomment_link', 'table' => 'node', 'field' => 'nodecomment_link', 'relationship' => 'none', ), 'nodecomment_author' => array( 'label' => 'by', '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_user' => 1, 'overwrite_anonymous' => 0, 'anonymous_text' => '', 'exclude' => 0, 'id' => 'nodecomment_author', 'table' => 'node', 'field' => 'nodecomment_author', 'relationship' => 'none', ), 'created' => array( 'label' => 'Posted', '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, ), 'date_format' => 'time ago', 'custom_date_format' => '', 'exclude' => 0, 'id' => 'created', 'table' => 'node', 'field' => 'created', 'relationship' => 'none', ), 'timestamp' => array( 'label' => '', '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' => 0, 'comments' => 0, 'exclude' => 0, 'id' => 'timestamp', 'table' => 'history_user', 'field' => 'timestamp', 'relationship' => 'none', ), 'name_1' => array( 'label' => 'Forum', '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_taxonomy' => 1, 'exclude' => 0, 'id' => 'name_1', 'table' => 'term_data', 'field' => 'name', 'override' => array( 'button' => 'Override', ), 'relationship' => 'nid_or_self', ), 'body' => array( 'label' => '', 'alter' => array( 'alter_text' => 1, 'text' => '', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'help' => '', 'trim' => 1, 'max_length' => '200', 'word_boundary' => 1, 'ellipsis' => 1, 'strip_tags' => 1, 'html' => 0, ), 'exclude' => 0, 'id' => 'body', 'table' => 'node_revisions', 'field' => 'body', 'relationship' => 'none', 'override' => array( 'button' => 'Override', ), ), )); $handler->override_option('sorts', array( 'score' => array( 'order' => 'DESC', 'id' => 'score', 'table' => 'search_index', 'field' => 'score', 'override' => array( 'button' => 'Override', ), 'relationship' => 'none', ), )); $handler->override_option('filters', array( 'term_node_tid_depth' => array( 'operator' => 'or', 'value' => array(), 'group' => '0', 'exposed' => TRUE, 'expose' => array( 'use_operator' => 0, 'operator' => 'term_node_tid_depth_op', 'identifier' => 'forum', 'label' => 'Forum', 'optional' => 1, 'single' => 1, 'remember' => 0, 'reduce' => 0, ), 'type' => 'select', 'limit' => TRUE, 'vid' => variable_get('forum_nav_vocabulary', ''), 'depth' => '2', 'id' => 'term_node_tid_depth', 'table' => 'node', 'field' => 'term_node_tid_depth', 'hierarchy' => 1, 'relationship' => 'nid_or_self', 'reduce_duplicates' => 0, ), 'keys' => array( 'operator' => 'required', 'value' => '', 'group' => '0', 'exposed' => TRUE, 'expose' => array( 'use_operator' => 0, 'operator' => 'keys_op', 'identifier' => 'keys', 'label' => 'Keywords', 'optional' => 0, 'remember' => 0, ), 'id' => 'keys', 'table' => 'search_index', 'field' => 'keys', 'override' => array( 'button' => 'Override', ), 'relationship' => 'none', ), 'vid' => array( 'operator' => 'in', 'value' => array( variable_get('forum_nav_vocabulary', '') => variable_get('forum_nav_vocabulary', ''), ), 'group' => '0', 'exposed' => FALSE, 'expose' => array( 'operator' => FALSE, 'label' => '', ), 'id' => 'vid', 'table' => 'term_data', 'field' => 'vid', 'override' => array( 'button' => 'Override', ), 'relationship' => 'nid_or_self', ), )); $handler->override_option('access', array( 'type' => 'none', )); $handler->override_option('cache', array( 'type' => 'none', )); $handler->override_option('title', 'Forum search'); $handler->override_option('header', 'You may use the word and to require multiple keywords, i.e, red and car. You may enclose words in quotes to perform an exact phrase match, i.e, "red car".'); $handler->override_option('header_format', '1'); $handler->override_option('header_empty', 1); $handler->override_option('use_pager', '1'); $handler->override_option('distinct', 0); $handler->override_option('row_options', array( 'inline' => array( 'name' => 'name', 'created' => 'created', 'timestamp' => 'timestamp', 'name_1' => 'name_1', ), 'separator' => '   ', )); $handler = $view->new_display('page', 'Page', 'page_1'); $handler->override_option('path', 'forum/search'); $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, )); // END VIEW EXPORT ********************************************************/ }