function _calc_indent in Calendar 7
Same name and namespace in other branches
- 8 calendar.theme.inc \_calc_indent()
- 6.2 calendar_multiday/theme/theme.inc \_calc_indent()
- 7.3 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
number
1 call to _calc_indent()
- _calc_indents in calendar_multiday/
theme/ theme.inc - Indent items based off a nested tree structure of overlapping items
File
- calendar_multiday/
theme/ theme.inc, line 1033 - Theme functions for the Calendar module.
Code
function _calc_indent($cur_depth, $depth) {
return round(10 * $cur_depth / ($depth + 1));
}