function taxonomy_edge_settings_form in Taxonomy Edge 7.2
Same name and namespace in other branches
- 8 taxonomy_edge.admin.inc \taxonomy_edge_settings_form()
- 6 taxonomy_edge.admin.inc \taxonomy_edge_settings_form()
- 7 taxonomy_edge.admin.inc \taxonomy_edge_settings_form()
Form build for the settings form
See also
taxonomy_edge_rebuild_submit()
1 string reference to 'taxonomy_edge_settings_form'
- taxonomy_edge_menu in ./
taxonomy_edge.module - Implements hook_menu().
File
- ./
taxonomy_edge.admin.inc, line 14 - Pages for taxonomy edge settings and more.
Code
function taxonomy_edge_settings_form() {
$form = array();
$form['taxonomy_edge_max_depth'] = array(
'#title' => t('Maximum depth'),
'#description' => t('Fail safe for avoiding infite loops when rebuilding edges.'),
'#type' => 'textfield',
'#default_value' => variable_get('taxonomy_edge_max_depth', TAXONOMY_EDGE_MAX_DEPTH),
);
$form['taxonomy_edge_build_realtime'] = array(
'#title' => t('Build tree realtime'),
'#description' => t('Update tree upon taxonomy modification.'),
'#type' => 'checkbox',
'#default_value' => variable_get('taxonomy_edge_build_realtime', TAXONOMY_EDGE_BUILD_REALTIME),
);
$form['taxonomy_edge_static_caching'] = array(
'#title' => t('Use static caching'),
'#description' => t('Use static caching for taxoomy_get_tree(). If experiencing memory exhausts, try disabling this.'),
'#type' => 'checkbox',
'#default_value' => variable_get('taxonomy_edge_static_caching', TAXONOMY_EDGE_STATIC_CACHING),
);
$form['taxonomy_edge_optimized_get_tree'] = array(
'#title' => t('Use optimized version of taxonomy_get_tree'),
'#description' => t('Taxonomy Edge implements two versions of taxonomy_get_tree(). One slightly optimized and one a bit more optimized. The more optimized version can in some cases be slower in highly dynamic taxonomy environments.'),
'#type' => 'checkbox',
'#default_value' => variable_get('taxonomy_edge_optimized_get_tree', TAXONOMY_EDGE_OPTIMIZED_GET_TREE),
);
$form = system_settings_form($form);
return $form;
}