function zoomapi_generate_user_email in Zoom API 7.2
Generate zoom user email.
2 calls to zoomapi_generate_user_email()
- zoomapi_create_user in ./
zoomapi.module - Create Zoom user.
- zoomapi_get_user in ./
zoomapi.module - Get Zoom user.
File
- ./
zoomapi.module, line 332 - Main file for the Zoom API module.
Code
function zoomapi_generate_user_email($account) {
$account = is_numeric($account) ? user_load($account) : $account;
$mail_pattern = variable_get('zoomapi_user_email_pattern', ZOOMAPI_USER_EMAIL_PATTERN_DEFAULT);
$token_data = [
'user' => $account,
];
$email = token_replace($mail_pattern, $token_data);
return $email;
}