function ctools_vocabulary_terms_content_type_edit_form
File
-
plugins/
content_types/ vocabulary_context/ vocabulary_terms.inc, line 78
Code
function ctools_vocabulary_terms_content_type_edit_form($form, &$form_state) {
$conf = $form_state['conf'];
$form['max_depth'] = array(
'#type' => 'select',
'#title' => t('Maximum depth'),
'#options' => array_merge(array(
t('unlimited'),
), range(1, 9)),
'#default_value' => $conf['max_depth'],
'#description' => t('Define the maximum depth of terms being displayed.'),
);
$form['tree'] = array(
'#type' => 'checkbox',
'#title' => t('Display as tree'),
'#default_value' => $conf['tree'],
'#description' => t('If checked, the terms are displayed in a tree, otherwise in a flat list.'),
);
return $form;
}