function htmlmail_user_form_submit in HTML Mail 8
Same name and namespace in other branches
- 8.3 htmlmail.module \htmlmail_user_form_submit()
Submit handler.
1 string reference to 'htmlmail_user_form_submit'
- htmlmail_form_user_form_alter in ./
htmlmail.module - Implements hook_form_FORM_ID_alter().
File
- ./
htmlmail.module, line 94 - Default file for HTML Mail module.
Code
function htmlmail_user_form_submit(array $form, FormStateInterface $form_state) {
$user_data_name = HtmlMailHelper::HTMLMAIL_USER_DATA_NAME;
\Drupal::service('user.data')
->set(HtmlMailHelper::HTMLMAIL_MODULE_NAME, $form_state
->getValue('uid'), $user_data_name, $form_state
->getValue($user_data_name));
}