function zoomapi_user_custcreate_email_generate in Zoom API 7
Generate custom email address for custcreate.
@todo document alter hook.
Parameters
object $account: The drupal user account to base the custom email from.
Return value
string The generated email address.
1 call to zoomapi_user_custcreate_email_generate()
- zoomapi_user_custcreate in ./
zoomapi.module - Create Custom Zoom User.
File
- ./
zoomapi.module, line 384 - Main file for the Zoom API module.
Code
function zoomapi_user_custcreate_email_generate($account) {
global $base_url;
$parts = parse_url($base_url);
$email = "user{$account->uid}@{$parts['host']}";
$context = [
'account' => $account,
];
drupal_alter('zoomapi_user_custcreate_email', $email, $context);
return $email;
}