function ctools_term_from_node_settings_form in Chaos Tool Suite (ctools) 6
Same name and namespace in other branches
- 7 plugins/relationships/term_from_node.inc \ctools_term_from_node_settings_form()
Settings form for the relationship.
1 string reference to 'ctools_term_from_node_settings_form'
- term_from_node.inc in plugins/
relationships/ term_from_node.inc - Plugin to provide an relationship handler for term from node.
File
- plugins/
relationships/ term_from_node.inc, line 44 - Plugin to provide an relationship handler for term from node.
Code
function ctools_term_from_node_settings_form($conf) {
$options = array();
foreach (taxonomy_get_vocabularies() as $vid => $vocabulary) {
$options[$vid] = $vocabulary->name;
}
$form['vid'] = array(
'#title' => t('Vocabulary'),
'#type' => 'select',
'#options' => $options,
'#default_value' => $conf['vid'],
'#prefix' => '<div class="clear-block">',
'#suffix' => '</div>',
);
return $form;
}