You are here

function fieldset_helper_number_of_collapsible_fieldset in Fieldset helper 7.2

Track the number of collapsible fieldsets on the page.

4 calls to fieldset_helper_number_of_collapsible_fieldset()
fieldset_helper_js_alter in ./fieldset_helper.module
Implements hook_js_alter().
fieldset_helper_preprocess_html in ./fieldset_helper.theme.inc
fieldset_helper_preprocess_page in ./fieldset_helper.theme.inc
Implements hook_preprocess_page().
_fieldset_helper_alter_fieldset in ./fieldset_helper.theme.inc
Alter fieldset element and set default collapsible and collapsed attributes.

File

./fieldset_helper.module, line 199

Code

function fieldset_helper_number_of_collapsible_fieldset($count = 0, $reset = FALSE) {
  static $number_of_collapsible_fieldset;
  if (!isset($number_of_collapsible_fieldset) || $reset === TRUE) {
    $number_of_collapsible_fieldset = 0;
  }
  $number_of_collapsible_fieldset += $count;
  return $number_of_collapsible_fieldset;
}