retrofit-drupal / retrofit

Retrofit provides compatibility layers to run legacy Drupal code.
https://retrofit-drupal.com
MIT License
74 stars 3 forks source link

User form user_profile_form form changes #149

Open mglaman opened 6 months ago

mglaman commented 6 months ago

The form ID is no longer user_profile_form.

Modules could set data on the account object and it was automatically saved.

      $form['overlay_control']['overlay'] = array(
        '#type' => 'checkbox',
        '#title' => t('Use the overlay for administrative pages.'),
        '#description' => t('Show administrative pages on top of the page you started from.'),
        '#default_value' => isset($account->data['overlay']) ? $account->data['overlay'] : 1,
      );