51 $new_user->makeAdmin();
56 $new_user->admin_created = TRUE;
71 ), $new_user->language);
74 'action' =>
'useradd',
75 'object' => $new_user,
elgg_get_config($name, $site_guid=0)
Get an Elgg configuration value.
elgg_get_site_entity($site_guid=0)
Get an entity (default is current site)
elgg_is_admin_logged_in()
Returns whether or not the viewer is currently logged in and an admin user.
elgg_echo($message_key, $args=array(), $language="")
Given a message key, returns an appropriately translated full-text string.
$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.
if(is_array($admin)) $autogen_password
notify_user($to, $from=0, $subject= '', $message= '', array $params=array(), $methods_override=null)
Notify a user via their preferences.
elgg system_message
Wrapper function for system_messages.
elgg register_error
Wrapper function for system_messages.
if(!$site) if(!($site instanceof ElggSite)) $site url
generate_random_cleartext_password()
Generate a random 12 character clear text password.
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.