Commit 2058bda1 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Add a parameter to open collapsed fieldsets

When displaying a pieforms fieldset, check the value of the 'fs'
parameter before deciding whether to 'collapse' the fieldset.  This
allows links to be created to (for example) the 'Group settings'
section of site options.

Change-Id: I4e8742d4ed57f1e8b3004fb330f38d6101024dd4
Signed-off-by: default avatarRichard Mansfield <>
parent 827fed1c
......@@ -59,7 +59,7 @@ function pieform_element_fieldset(Pieform $form, $element) {/*{{{*/
if (!empty($element['collapsed']) && !$error) {
if (!empty($element['collapsed']) && !$error && param_alphanumext('fs', null) != $element['name']) {
$classes[] = 'collapsed';
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment