42 if (
$guid ===
false) {
69 'action' =>
'useradd',
72 'apply_muting' =>
false,
get_user($guid)
Get a user object from a GUID.
elgg_is_admin_logged_in()
Returns whether or not the viewer is currently logged in and an admin user.
Elgg registration action.
Could not register a new user for whatever reason.
elgg_echo($message_key, array $args=[], $language="")
Elgg language module Functions to manage language and translations.
notify_user($to, $from=0, $subject= '', $message= '', array $params=[], $methods_override=null)
Notify a user via their preferences.
register_user($username, $password, $name, $email, $allow_multiple_emails=false, $subtype=null, array $params=[])
Registers a user, returning false if the username already exists.
elgg_get_site_entity()
Get the current site entity.
generate_random_cleartext_password()
Generate a random 12 character clear text password.
elgg_error_response($message= '', $forward_url=REFERRER, int $status_code=ELGG_HTTP_BAD_REQUEST)
Prepare an error response to be returned by a page or an action handler.
if($guid===false) $new_user
elgg_ok_response($content= '', $message= '', $forward_url=null, int $status_code=ELGG_HTTP_OK)
Prepares a successful response to be returned by a page or an action handler.
elgg_get_logged_in_user_guid()
Return the current logged in user by guid.
elgg_get_config($name, $default=null)
Get an Elgg configuration value.
$guid
Reset an ElggUpgrade.