mgd_walk_style_tree

Name

mgd_walk_style_tree -- Walk a style tree

Synopsis

bool mgd_walk_style_tree(string func, int root, int maxlevel, mixed xparam, bool [order]);

Description

Minimum version: Midgard 1.4 (Bifrost)

Walks the style tree starting at the style record with id root to a level of maxlevel deep. for each style the user defined function func is called. Parameters to this function will be: id, the id of the style currently being walked, level , the level of descendance from the root level, xparam, a variable passed through by the user. If order is false, each style will be processed after all its children. If set to true, each style will be processed before its children.

Returns true if successfull. Returns false on failure.