function taxonomy_manager_settings in Taxonomy Manager 6.2
Same name and namespace in other branches
- 5 taxonomy_manager.module \taxonomy_manager_settings()
- 6 taxonomy_manager.admin.inc \taxonomy_manager_settings()
- 7 taxonomy_manager.admin.inc \taxonomy_manager_settings()
Defines a settings form.
1 string reference to 'taxonomy_manager_settings'
- taxonomy_manager_menu in ./
taxonomy_manager.module - Implementation of hook_menu
File
- ./
taxonomy_manager.admin.inc, line 1534 - Taxonomy Manager Admin
Code
function taxonomy_manager_settings() {
$form['taxonomy_manager_disable_mouseover'] = array(
'#type' => 'checkbox',
'#title' => t('Disable mouse-over effect for terms (weights and direct link)'),
'#default_value' => variable_get('taxonomy_manager_disable_mouseover', 0),
'#description' => t('Disabeling this feature speeds up the Taxonomy Manager'),
);
$form['taxonomy_manager_disable_merge_redirect'] = array(
'#type' => 'checkbox',
'#title' => t('Disable redirect of the taxonomy term page to merged terms '),
'#default_value' => variable_get('taxonomy_manager_disable_merge_redirect', TRUE),
'#description' => t('When using the merging feature, the selected terms get merged into one term. All selected terms will be deleted afterwards. Normally the Taxonomy Manager redirects calls to taxonomy/term/$tid of the deleted terms (through merging) to the resulting merged term. This feature might conflict with other modules (e.g. Taxonomy Breadcrumb, Panels), which implement hook_menu_alter to change the taxonomy_manager_term_page callback. Disable this feature if it conflicts with other modules or if you do not need it. Changing this setting requires a (menu) cache flush to become active.'),
);
$form['taxonomy_manager_pager_tree_page_size'] = array(
'#type' => 'select',
'#title' => t('Pager count'),
'#options' => array(
25 => 25,
50 => 50,
75 => 75,
100 => 100,
150 => 150,
200 => 200,
250 => 250,
300 => 300,
400 => 400,
500 => 500,
),
'#default_value' => variable_get('taxonomy_manager_pager_tree_page_size', 50),
'#description' => t('Select how many terms should be listed on one page. Huge page counts can slow down the Taxonomy Manager'),
);
return system_settings_form($form);
}