You are here

function advanced_forum_stripe in Advanced Forum 6.2

Same name and namespace in other branches
  1. 7.2 includes/advanced_forum_preprocess_forum_list.inc \advanced_forum_stripe()
1 call to advanced_forum_stripe()
_advanced_forum_preprocess_forum_list in includes/advanced_forum_preprocess_forum_list.inc
@file Holds the contents of a preprocess function moved into its own file to ease memory requirements and having too much code in one file.

File

includes/advanced_forum_preprocess_forum_list.inc, line 208
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;
}