Persistent Fieldsets

Component ID

1202674

Component name

Persistent Fieldsets

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Component created

Component changed

Component body

This module makes the state of collapsible fieldsets persistent (If you collapse it, it will remain collapsed). It's a small usability improvement that makes pages like the Modules page a lot better.

You can make any fieldset persistent by adding the #persistent attribute to it.

Example :

$form['block'] = array(
  '#type' => 'fieldset',
  '#title' => t('Block configuration'),
  '#weight' => 3,
  '#collapsible' => TRUE,
  '#collapsed' => FALSE,
  '#persistent' => TRUE,
  '#tree' => TRUE,
);