You are here

function user_register_notify_update_7003 in User registration notification 7

Upgrade action setting to checkboxes.

File

./user_register_notify.install, line 148
Installation file for user_register_notify module.

Code

function user_register_notify_update_7003() {
  $messages = array();
  $user_register_notify_alert = variable_get('user_register_notify_alert', 'create');
  if ($user_register_notify_alert == 'update') {
    variable_set('user_register_notify_alert', array(
      'create' => 'create',
      'update' => 'update',
    ));
    $messages[] = t('Enabled account creation and update notifications.');
  }
  else {
    variable_set('user_register_notify_alert', array(
      'create' => 'create',
    ));
    $messages[] = t('Enabled new account creation notifications.');
  }
  return implode(' ', $messages);
}