function _nodehierarchy_display_children_list in Node Hierarchy 5
Same name and namespace in other branches
- 6 nodehierarchy.module \_nodehierarchy_display_children_list()
Get the children list of the given node.
3 calls to _nodehierarchy_display_children_list()
- nodehierarchy_site_outline in ./
nodehierarchy.module - Display a page with the outline of the entire site.
- nodehierarchy_view_children in ./
nodehierarchy.module - Display the children tab.
- theme_nodehierarchy_node_list in ./
nodehierarchy_theme.inc - Display a list of nodes with nodehierarchy actions.
File
- ./
nodehierarchy.module, line 623 - A module to make nodes hierarchical.
Code
function _nodehierarchy_display_children_list($node, $expandable = FALSE) {
$out = "";
drupal_add_js(drupal_get_path("module", "nodehierarchy") . '/nodehierarchy.js');
drupal_add_js('Drupal.nodehierarchy.callbackURL = "' . url("nodehierarchy/ajax") . '"; Drupal.nodehierarchy.destination = "' . drupal_get_destination() . '"', 'inline');
$children = nodehierarchy_get_node_children_list($node->nid, $expandable, 20);
$out .= theme("nodehierarchy_children_list", $node, $children);
$out .= theme('pager', NULL, 20, 0);
return $out;
}