All pastes #296955 Raw Edit

Miscellany

public text v1 · immutable
#296955 ·published 2006-12-30 19:10 UTC
rendered paste body
$vocabularies = variable_get('taxo_drill_down_vocabularies', array());

$terms = taxonomy_get_children($tid,$vid);

foreach($terms as $term) {
$form[] = array($term->tid,$term->name);
}

$form['Taxonomy'] = array(
'#type' => 'select',
'#multiple' => TRUE,
'#size' => 10,
'#title' => t('Categories'),
'#tree' => TRUE,
);

// To style the form title: 
// #prefix => div class="foo" 
// .foo label { ... }  
// this would wrap the entire form-item class div
// and hence the label    


$form['submit'] = array(
'#type' => 'submit',
'#value' => t('GO!'),
);

return drupal_get_form('taxo_drill_down_page', $form);