_forum_parent_select
function _forum_parent_select
_forum_parent_select($tid, $title, $child_type)
Returns a select box for available parent terms.
Parameters
$tid: ID of the term that is being added or edited.
$title: Title for the select box.
$child_type: Whether the child is a forum or a container.
Return value
A select form element.
File
- modules/forum/forum.admin.inc, line 315
- Administrative page callbacks for the Forum module.
Code
function _forum_parent_select($tid, $title, $child_type) { $parents = taxonomy_get_parents($tid); if ($parents) { $parent = array_shift($parents); $parent = $parent->tid; } else { $parent = 0; } $vid = variable_get('forum_nav_vo