so... I am hand-coding a form and a simple Views-like loop, to mimic the action of a View with Exposed Filters form (but with lots less overhead, and more flexibility both in how the output is formatted, and how the exposed filter values are interpreted)
I have done similar things in D6 without problem.
my problem is this: to create a SELECT box with the values of a particular taxonomy, it used to be as simple as:
$form['controlname'] = taxonomy_form($taxonomy_vocab_id, $taxonomy_term);
however, in D7 there isn't even a taxonomy_form function!
based on some code I found in this post: http://drupal.org/node/1092528 I came up with the following (note: I had to change the theming function from "taxonomy_term_select" to "select", since function theme_taxonomy_term_select doesn't exist in D7)
$form['controlname'] = d7_taxonomy_form($taxonomy_vocab_id, $taxonomy_term);
function d7_taxonomy_form($vid, $value = 0, $help = NULL, $name = 'taxonomy') {
$vocabulary = taxonomy_vocabulary_load($vid);
$multiple = false;
//$help = ($help) ? $help : filter_xss_admin($vocabulary->help);
$required = false;
if (!$multiple) {
$blank = ($required) ? t('- Please choose -') : t('- None selected -');
}
else {
$blank = ($required) ? 0 : t('- None -');
}