function _calc_indent in Calendar 7.3
Same name and namespace in other branches
- 8 calendar.theme.inc \_calc_indent()
- 6.2 calendar_multiday/theme/theme.inc \_calc_indent()
- 7 calendar_multiday/theme/theme.inc \_calc_indent()
- 7.2 calendar_multiday/theme/theme.inc \_calc_indent()
Calculates the indent based of the current depth and the depth of this branch in the tree.
Parameters
int $cur_depth:
int $depth:
Return value
int
1 call to _calc_indent()
- _calc_indents in theme/
theme.inc - Indent items based off a nested tree structure of overlapping items.
File
- theme/
theme.inc, line 876 - Theme functions for the Calendar module.
Code
function _calc_indent($cur_depth, $depth) {
return round(10 * $cur_depth / ($depth + 1));
}