function content_taxonomy_tree_widget_settings in Content Taxonomy 6.2
Same name and namespace in other branches
- 6 content_taxonomy_tree.module \content_taxonomy_tree_widget_settings()
Implementation of hook_widget_settings
File
- ./
content_taxonomy_tree.module, line 37
Code
function content_taxonomy_tree_widget_settings($op, $widget) {
switch ($op) {
case 'form':
$form['settings'] = array(
'#type' => 'fieldset',
'#title' => t('Settings for Trees'),
'#collapsible' => TRUE,
'#weight' => 10,
);
$form['settings']['expand_all'] = array(
'#type' => 'checkbox',
'#title' => t('Expand whole tree by default'),
'#default_value' => isset($widget['expand_all']) ? $widget['expand_all'] : 0,
'#description' => t('Otherwise only branches, where a term is selected get expanded by default'),
);
return $form;
case 'save':
return array(
'expand_all',
);
}
}