function taxonomy_manager_tree_build_child_form in Taxonomy Manager 5
Same name and namespace in other branches
- 6.2 taxonomy_manager.module \taxonomy_manager_tree_build_child_form()
- 6 taxonomy_manager.module \taxonomy_manager_tree_build_child_form()
- 7 taxonomy_manager.module \taxonomy_manager_tree_build_child_form()
callback for generating and rendering nested child forms (AHAH)
Parameters
$tree_id :
$parent term id of parent, that is expanded and of which children have to be loaded:
1 string reference to 'taxonomy_manager_tree_build_child_form'
- taxonomy_manager_menu in ./
taxonomy_manager.module - Implementation of hook_menu
File
- ./
taxonomy_manager.module, line 1879 - Taxonomy Manager
Code
function taxonomy_manager_tree_build_child_form($tree_id, $vid, $parent) {
$GLOBALS['devel_shutdown'] = FALSE;
//prevent devel queries footprint
$child_form = array(
'#type' => 'taxonomy_manager_tree',
'#vid' => $vid,
'#parent' => $parent,
'#pager' => TRUE,
);
if (!$root_level) {
$child_form['#siblings_page'] = 1;
}
$opertions_callback = str_replace('-', '_', $tree_id) . '_operations';
if (function_exists($opertions_callback)) {
$child_form['#operations'] = $opertions_callback();
}
$link_callback = str_replace('-', '_', $tree_id) . '_link';
if (function_exists($link_callback)) {
$child_form['#link'] = $link_callback($vid);
}
_taxonomy_manager_tree_sub_forms_set_parents($tree_id, $parent, $child_form);
$child_form = form_builder('taxonomy_manager_form', $child_form);
print drupal_render($child_form);
exit;
}