Closed herbdool closed 6 years ago
The admin form https://github.com/backdrop-contrib/mimemail/blob/1.x-1.x/includes/mimemail.admin.inc saves everything to config, including the form ids which change each time. This shouldn't all be in config.
Instead you can probably use something like this:
<?php function modulename_settings_form($form, $form_state) { $form['#config'] = 'modulename.settings'; $form['my_setting'] = array( '#type' => 'textfield', '#title' => t('My setting'), '#default_value' => config_get('modulename.settings', 'my_setting', ''), ); return system_settings_form($form); } ?>
The admin form https://github.com/backdrop-contrib/mimemail/blob/1.x-1.x/includes/mimemail.admin.inc saves everything to config, including the form ids which change each time. This shouldn't all be in config.
Instead you can probably use something like this: