From 44df3b237d92ae7194315f28acc6a2cab4e02d85 Mon Sep 17 00:00:00 2001 From: Matt G Date: Fri, 22 Jul 2011 12:57:28 -0500 Subject: [PATCH] added function that permits hidden vocabularies to also be hidden on advanced search page --- taxonomy_hide.admin.inc | 8 ++++++++ taxonomy_hide.module | 16 ++++++++++++++++ 2 files changed, 24 insertions(+), 0 deletions(-) mode change 100644 => 100755 taxonomy_hide.admin.inc mode change 100644 => 100755 taxonomy_hide.module diff --git a/taxonomy_hide.admin.inc b/taxonomy_hide.admin.inc old mode 100644 new mode 100755 index 729cc10..bc53626 --- a/taxonomy_hide.admin.inc +++ b/taxonomy_hide.admin.inc @@ -14,6 +14,14 @@ function _taxonomy_hide_admin_settings() { '#default_value' => variable_get('taxonomy_hide_group_by_vocabulary', 0), '#description' => t('Check this box to group terms by vocabulary in node views.'), ); + + $form['taxonomy_hide_advanced_search'] = array( + '#type' => 'checkbox', + '#title' => t('Hide on Advanced Search'), + '#default_value' => variable_get('taxonomy_hide_advanced_search', 0), + '#description' => t('Check this box to hide selected vocabularies on the core Advanced Search page.'), + ); + $form['taxonomy_hide'] = array( '#type' => 'fieldset', '#title' => t('Vocabulary settings'), diff --git a/taxonomy_hide.module b/taxonomy_hide.module old mode 100644 new mode 100755 index 81dc45a..d915a0f --- a/taxonomy_hide.module +++ b/taxonomy_hide.module @@ -1,4 +1,5 @@ name]); + } + return $form; +} -- 1.7.1