Unset Vocabulary from the Advanced Search Form when hidden
tars16 - July 17, 2009 - 15:40
| Project: | Taxonomy hide |
| Version: | HEAD |
| Component: | Miscellaneous |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
It would be great if there was an option for or if taxonomy hide could automatically unset the vocabulary from the Advanced Search Form. The option would be better since there could be a situation where you don't want the vocabulary on the node view but would like it in the search form. I've used this code to remove them as I've needed to.
function MODULENAME_form_alter(&$form, $form_state, $form_id){
if ('search_form' == $form_id) {
unset($form['advanced']['category']['#options']['Company Relationship']);
unset($form['advanced']['category']['#options']['Visibility']);
}
return $form;
}Is there a way to incorporate this? Does it make sense to do so?

#1
Just realized there was another issue for this. Sorry.
#2
1) Where is the other issue? (ok, I've seen it: http://drupal.org/node/204280#comment-2309406)
2) Your code could be added as a patch, isn't it?