function panels_admin_edit_vocabulary_terms in Panels 6.2
Same name and namespace in other branches
- 5.2 content_types/vocabulary_terms.inc \panels_admin_edit_vocabulary_terms()
1 string reference to 'panels_admin_edit_vocabulary_terms'
- panels_vocabulary_terms_panels_content_types in content_types/
vocabulary_terms.inc - Callback function to supply a list of content types.
File
- content_types/
vocabulary_terms.inc, line 86
Code
function panels_admin_edit_vocabulary_terms($id, $parents, $conf = array()) {
// Apply defaults
if (empty($conf)) {
$conf = array(
'max_depth' => 0,
'tree' => 1,
);
}
$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;
}