Auto-collapsing fieldsets on user_profile_form
You want to use hook_form_alter here.

THEME_form_alter(&amp;$form, &amp;$form_state, $form_id)
{
    if ($form_id == "user_profile_form")
    {
        $form["FIELDSET"]["#collapsible"] = true;
        $form["FIELDSET"]["#collapsed"] = true;
    }
}