function 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
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;
}