function hs_taxonomy_form_forum_form_container_alter in Hierarchical Select 6.3
File
- modules/
hs_taxonomy.module, line 177 - Implementation of the Hierarchical Select API for the Taxonomy module.
Code
function hs_taxonomy_form_forum_form_container_alter(&$form, &$form_state) {
unset($form['parent'][0]['#options']);
unset($form['parent'][0]['#theme']);
unset($form['parent'][0]['#required']);
$form['parent'][0]['#type'] = 'hierarchical_select';
$form['parent'][0]['#config'] = array(
'module' => 'hs_taxonomy',
'enforce_deepest' => 0,
'save_lineage' => 0,
'params' => array(
'vid' => $form['vid']['#value'],
'exclude_tid' => $form['tid']['#value'],
'root_term' => TRUE,
),
);
}