You are here

function user_register_notify_profile2_update in User registration notification 7

Implements hook_profile2_update().

File

./user_register_notify.module, line 79
Installation file for the user_register_notify module.

Code

function user_register_notify_profile2_update($profile) {
  $account = user_load($profile->uid);
  if (is_object($account) && in_array('update', variable_get('user_register_notify_alert', array(
    'create' => 'create',
  )), TRUE)) {
    user_register_notify_setup_email($account, 'update');
  }
}