function fieldset_helper_toggle_all_output in Fieldset helper 7.2
Same name and namespace in other branches
- 6.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 - Implements 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/modules') === 0) {
$toggle_all_selectors = array(
'rubik' => '#system-modules div.column-wrapper > fieldset.collapsible',
'default' => '#system-modules > div > fieldset.collapsible',
);
$toggle_all_selector = isset($toggle_all_selectors[$theme]) ? $toggle_all_selectors[$theme] : $toggle_all_selectors['default'];
}
else {
$toggle_all_selector = '';
}
return theme('fieldset_helper_toggle_all', array(
'selector' => $toggle_all_selector,
));
}