You are here

function fieldset_helper_toggle_all_output in Fieldset helper 6.2

Same name and namespace in other branches
  1. 7.2 fieldset_helper.theme.inc \fieldset_helper_toggle_all_output()

Output toggle all fieldsets link.

1 call to fieldset_helper_toggle_all_output()
fieldset_helper_preprocess_page in ./fieldset_helper.theme.inc
Implementation of hook_preprocess_page().

File

./fieldset_helper.theme.inc, line 11
Theme functions for fieldset helper module

Code

function fieldset_helper_toggle_all_output() {
  global $theme;
  if (strpos($_GET['q'], 'admin/build/modules') === 0) {
    $toggle_all_selectors = array(
      'rubik' => '#system-modules div.column-wrapper > fieldset.collapsible',
      'default' => '#system-modules > div > fieldset.collapsible',
    );
    $toggle_all_selector = $toggle_all_selectors[$theme] ? $toggle_all_selectors[$theme] : $toggle_all_selectors['default'];
  }
  else {
    $toggle_all_selector = '';
  }
  return theme('fieldset_helper_toggle_all', $toggle_all_selector);
}