function user_register_notify_update_7001 in User registration notification 7
Split created and updated e-mails.
File
- ./
user_register_notify.install, line 84 - Installation file for user_register_notify module.
Code
function user_register_notify_update_7001() {
$messages = array();
$string = variable_get('user_register_notify_subject', '');
$string = str_replace('!action', 'created', $string);
variable_set('user_register_notify_created_subject', $string);
$string = variable_get('user_register_notify_body', '');
$string = str_replace('!action', 'created', $string);
variable_set('user_register_notify_created_body', $string);
$string = variable_get('user_register_notify_subject', '');
$string = str_replace('!action', 'updated', $string);
variable_set('user_register_notify_updated_subject', $string);
$string = variable_get('user_register_notify_body', '');
$string = str_replace('!action', 'updated', $string);
variable_set('user_register_notify_updated_body', $string);
variable_del('user_register_notify_subject');
variable_del('user_register_notify_body');
$messages[] = t('Split created and updated e-mails.');
return implode(' ', $messages);
}