function ctools_term_from_node_settings_form in Chaos Tool Suite (ctools) 7
Same name and namespace in other branches
- 6 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 43 - Plugin to provide an relationship handler for term from node.
Code
function ctools_term_from_node_settings_form($form, &$form_state) {
$conf = $form_state['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="clearfix">',
'#suffix' => '</div>',
);
return $form;
}