41 $new_user->makeAdmin();
46 $new_user->admin_created = TRUE;
57 ), $new_user->language);
elgg_get_site_entity($site_guid=0)
Get an ElggSite entity (default is current site)
elgg_is_admin_logged_in()
Returns whether or not the viewer is currently logged in and an admin user.
$guid
Removes an admin notice.
elgg forward
Meant to mimic the php forward() function by simply redirecting the user to another page...
register_user($username, $password, $name, $email, $allow_multiple_emails=false)
Registers a user, returning false if the username already exists.
elgg_echo($message_key, $args=array(), $language="")
Given a message key, returns an appropriately translated full-text string.
elgg system_message
Wrapper function for system_messages.
$CONFIG url
The full URL where Elgg is installed.
elgg register_error
Wrapper function for system_messages.
notify_user($to, $from, $subject, $message, array $params=array(), $methods_override="")
Notify a user via their preferences.
elgg_get_logged_in_user_guid()
Return the current logged in user by guid.
get_entity($guid)
Loads and returns an entity object from a guid.