? LICENSE.txt ? enhance_texts.diff ? settings.diff Index: taxonomy_hide.module =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/taxonomy_hide/taxonomy_hide.module,v retrieving revision 1.3 diff -u -2 -r1.3 taxonomy_hide.module --- taxonomy_hide.module 27 Dec 2006 10:57:15 -0000 1.3 +++ taxonomy_hide.module 27 Dec 2006 12:12:13 -0000 @@ -42,4 +42,12 @@ '#weight' => -1, ); + + # Note that the settings will be saved as an array whose keys are + # the vocabulary ids ($vid) and whose values are 0 (disabled) or + # $vid (enabled). + # The default_value should be an array whose values are the enabled + # vocabulary ids. + # The options should be an array whose keys are the vocabulary ids, + # and whose values are the names of the vocabularies. $select = array(); $vocabularies = taxonomy_get_vocabularies(); @@ -50,5 +58,5 @@ '#type' => 'checkboxes', '#title' => t('Hide vocabularies'), - '#default_value' => variable_get('taxonomy_hide_vocabularies', array ()), + '#default_value' => array_keys(array_filter(variable_get('taxonomy_hide_vocabularies', array ()))), '#options' => $select, '#description' => t('Select the vocabularies whose terms should disappear from node views'),