41 $new_user->makeAdmin();
46 $new_user->admin_created = TRUE;
57 ), $new_user->language);
if(! $site) if(!($site instanceof ElggSite)) $site url
$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.
elgg_echo($message_key, $args=array(), $language="")
Given a message key, returns an appropriately translated full-text string.
get_entity($guid)
Loads and returns an entity object from a guid.
notify_user($to, $from, $subject, $message, array $params=array(), $methods_override="")
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)
register_user($username, $password, $name, $email, $allow_multiple_emails=false)
Registers a user, returning false if the username already exists.