51 $new_user->makeAdmin();
56 $new_user->admin_created = TRUE;
71 ), $new_user->language);
74 'action' =>
'useradd',
75 'object' => $new_user,
if(! $site) if(!($site instanceof ElggSite)) $site url
if(is_array($admin)) $autogen_password
elgg_get_config($name, $site_guid=0)
Get an Elgg configuration value.
$guid
Removes an admin notice.
register_error($error)
Display an error on next page load.
system_message($message)
Display a system message on next page load.
forward($location="", $reason='system')
Forward to $location.
get_entity($guid)
Loads and returns an entity object from a guid.
elgg_echo($message_key, $args=array(), $language="")
Given a message key, returns an appropriately translated full-text string.
notify_user($to, $from=0, $subject='', $message='', array $params=array(), $methods_override=null)
Notify a user via their preferences.
elgg_is_admin_logged_in()
Returns whether or not the viewer is currently logged in and an admin user.
elgg_get_logged_in_user_guid()
Return the current logged in user by guid.
elgg_get_site_entity($site_guid=0)
Get an \ElggSite entity (default is current site)
generate_random_cleartext_password()
Generate a random 12 character clear text password.
register_user($username, $password, $name, $email, $allow_multiple_emails=false)
Registers a user, returning false if the username already exists.