_forum_depth

Versions
4.6
_forum_depth($depth, $graphic = '--')

Helper function used to generate indentation for forum list

Parameters

$depth Depth of the indentation

$graphic HTML text to be repeated for each stage of depth

▾ 2 functions call _forum_depth()

forum_overview in modules/forum.module
Returns an overview list of existing forums and containers
_forum_parent_select in modules/forum.module
Returns a select box for available parent terms

Code

modules/forum.module, line 259

<?php
function _forum_depth($depth, $graphic = '--') {
  for ($n = 0; $n < $depth; $n++) {
    $result .= $graphic;
  }
  return $result;
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.