20 $current_password =
get_input(
'current_password', null,
false);
35 'username' =>
$user->username,
36 'password' => $current_password
248 $current_default_access =
$user->getPrivateSetting(
'elgg_default_access');
285 'name' =>
'1_account',
286 'text' =>
elgg_echo(
'usersettings:user:opt:linktext'),
287 'href' =>
"settings/user/{$user->username}",
288 'section' =>
'configure',
292 'name' =>
'1_plugins',
293 'text' =>
elgg_echo(
'usersettings:plugins:opt:linktext'),
295 'section' =>
'configure',
299 'name' =>
'1_statistics',
300 'text' =>
elgg_echo(
'usersettings:statistics:opt:linktext'),
301 'href' =>
"settings/statistics/{$user->username}",
302 'section' =>
'configure',
309 foreach ($active_plugins as
$plugin) {
315 $title = $plugin->getFriendlyName();
320 'href' =>
"settings/plugins/{$user->username}/$plugin_id",
321 'parent_name' =>
'1_plugins',
322 'section' =>
'configure',
361 if ($menu_item->getName() ==
"1_plugins") {
362 if (!$menu_item->getChildren()) {
381 if (!isset($page[0])) {
385 if (isset($page[1])) {
400 if (isset($page[2])) {
401 $vars[
'plugin_id'] = $page[2];
434 elgg_extend_view(
'forms/account/settings',
'core/settings/account/name', 100);
435 elgg_extend_view(
'forms/account/settings',
'core/settings/account/password', 100);
436 elgg_extend_view(
'forms/account/settings',
'core/settings/account/email', 100);
437 elgg_extend_view(
'forms/account/settings',
'core/settings/account/language', 100);
438 elgg_extend_view(
'forms/account/settings',
'core/settings/account/default_access', 100);
442 $events->registerHandler(
'init',
'system',
'_elgg_user_settings_init');
elgg_language_key_exists($key, $language= 'en')
Check if a given language key exists.
elgg_view_exists($view, $viewtype= '', $recurse=true)
Returns whether the specified view exists.
elgg_get_config($name, $site_guid=0)
Get an Elgg configuration value.
_elgg_user_settings_page_handler($page)
Page handler for user settings.
get_user_by_email($email)
Get an array of users from an email address.
_elgg_set_user_language()
Set a user's language Returns null if no change is required or input is not present in the form Retur...
elgg_is_admin_logged_in()
Returns whether or not the viewer is currently logged in and an admin user.
if($guid==elgg_get_logged_in_user_guid()) $name
elgg_echo($message_key, $args=array(), $language="")
Given a message key, returns an appropriately translated full-text string.
elgg_view_resource($name, array $vars=[])
Render a resource view.
_elgg_user_settings_menu_setup()
Set up the menu for user settings.
elgg_register_plugin_hook_handler($hook, $type, $callback, $priority=500)
pam_auth_userpass(array $credentials=array())
Hook into the PAM system which accepts a username and password and attempts to authenticate it agains...
elgg_set_page_owner_guid($guid)
Set the guid of the entity that owns this page.
get_user_by_username($username)
Get user by username.
elgg_strlen()
Wrapper function for mb_strlen().
_elgg_set_user_name()
Set a user's display name Returns null if no change is required or input is not present in the form R...
get_user($guid)
Get a user object from a GUID.
validate_password($password)
Simple validation of a password.
_elgg_user_settings_menu_prepare($hook, $type, $value, $params)
Prepares the page menu to strip out empty plugins menu item for user settings.
_elgg_set_user_default_access()
Set a user's default access level Returns null if no change is required or input is not present in th...
elgg_in_context($context)
Check if this context exists anywhere in the stack.
elgg echo
Translates a string.
elgg_register_page_handler($identifier, $function)
Registers a page handler for a particular identifier.
_elgg_set_user_email()
Set a user's email address Returns null if no change is required or input is not present in the form ...
elgg_get_page_owner_entity()
Gets the owner entity for the current page.
_elgg_user_settings_init()
Initialize the user settings library.
_elgg_set_user_password()
Set a user's password Returns null if no change is required Returns true or false indicating success ...
elgg_extend_view($view, $view_extension, $priority=501)
Extends a view with another view.
_elgg_services(\Elgg\Di\ServiceProvider $services=null)
Get the global service provider.
elgg_extract($key, $array, $default=null, $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
elgg system_message
Wrapper function for system_messages.
elgg_register_event_handler($event, $object_type, $callback, $priority=500)
elgg_get_plugins($status= 'active', $site_guid=null)
Returns an ordered list of plugins.
elgg_register_menu_item($menu_name, $menu_item)
Register an item for an Elgg menu.
elgg register_error
Wrapper function for system_messages.
elgg_get_logged_in_user_entity()
Return the current logged in user, or null if no user is logged in.
elgg_register_action($action, $filename="", $access= 'logged_in')
Registers an action.
$user_guid
Avatar remove action.
elgg_get_logged_in_user_guid()
Return the current logged in user by guid.
if(!$user instanceof ElggUser) $default_access