function example_taxonomy_form_all in Coder 7.2
Same name and namespace in other branches
- 7 coder_upgrade/tests/old/samples/example.module \example_taxonomy_form_all()
File
- coder_upgrade/
tests/ old/ samples/ example.module, line 1207
Code
function example_taxonomy_form_all() {
$form = array();
$form['term'] = array(
'#type' => 'select',
'#title' => t('Term'),
'#options' => taxonomy_form_all(),
'#description' => t('Select a term to apply to the node. Keep in mind that the selected product node type must have the selected vocabulary enabled.'),
'#default_value' => $settings['term'],
);
$terms = taxonomy_form_all();
if ($terms) {
$form['term'] = array(
'#type' => 'select',
'#title' => t('Term'),
'#options' => $terms,
'#description' => t('Select a term to apply to the node. Keep in mind that the selected product node type must have the selected vocabulary enabled.'),
'#default_value' => $settings['term'],
);
}
return $form;
}