function htmlmail_user_presave in HTML Mail 8.2
Same name and namespace in other branches
- 7.2 htmlmail.module \htmlmail_user_presave()
- 7 htmlmail.module \htmlmail_user_presave()
Implements hook_user_presave().
File
- ./
htmlmail.module, line 177 - Sends system emails in HTML.
Code
function htmlmail_user_presave(&$edit, $account, $category) {
if (user_access('choose htmlmail_plaintext') || user_access('administer users')) {
$edit['data']['htmlmail_plaintext'] = empty($edit['htmlmail_plaintext']) ? 0 : 1;
unset($edit['htmlmail_plaintext']);
}
}