function advanced_forum_stripe in Advanced Forum 7.2
Same name and namespace in other branches
- 6.2 includes/advanced_forum_preprocess_forum_list.inc \advanced_forum_stripe()
Forum stripe.
1 call to advanced_forum_stripe()
- _advanced_forum_preprocess_forum_list in includes/
advanced_forum_preprocess_forum_list.inc - Preprocess forum list.
File
- includes/
advanced_forum_preprocess_forum_list.inc, line 241 - Holds the contents of a preprocess function moved into its own file to ease memory requirements and having too much code in one file.
Code
function advanced_forum_stripe($reset = FALSE) {
static $stripe = 'odd';
if ($reset) {
$stripe = 'odd';
}
else {
$stripe = $stripe == 'odd' ? 'even' : 'odd';
}
return $stripe;
}