18 $current_password =
get_input(
'current_password', null,
false);
33 'username' =>
$user->username,
34 'password' => $current_password
215 $default_access =
get_input(
'default_access');
225 $current_default_access =
$user->getPrivateSetting(
'elgg_default_access');
226 if ($default_access !== $current_default_access) {
227 if (
$user->setPrivateSetting(
'elgg_default_access', $default_access)) {
262 'name' =>
'1_account',
263 'text' =>
elgg_echo(
'usersettings:user:opt:linktext'),
264 'href' =>
"settings/user/{$user->username}",
265 'section' =>
'configure',
269 'name' =>
'1_plugins',
270 'text' =>
elgg_echo(
'usersettings:plugins:opt:linktext'),
272 'section' =>
'configure',
276 'name' =>
'1_statistics',
277 'text' =>
elgg_echo(
'usersettings:statistics:opt:linktext'),
278 'href' =>
"settings/statistics/{$user->username}",
279 'section' =>
'configure',
286 foreach ($active_plugins as
$plugin) {
291 'text' => $plugin->getFriendlyName(),
292 'href' =>
"settings/plugins/{$user->username}/$plugin_id",
293 'parent_name' =>
'1_plugins',
294 'section' =>
'configure',
324 if (empty($configure)) {
328 foreach ($configure as $index => $menu_item) {
333 if ($menu_item->getName() ==
"1_plugins") {
334 if (!$menu_item->getChildren()) {
336 unset(
$value[
"configure"][$index]);
355 if (!isset($page[0])) {
359 if (isset($page[1])) {
372 $path = $CONFIG->path .
"pages/settings/statistics.php";
375 if (isset($page[2])) {
378 $path = $CONFIG->path .
"pages/settings/tools.php";
382 $path = $CONFIG->path .
"pages/settings/account.php";
413 elgg_extend_view(
'forms/account/settings',
'core/settings/account/name', 100);
414 elgg_extend_view(
'forms/account/settings',
'core/settings/account/password', 100);
415 elgg_extend_view(
'forms/account/settings',
'core/settings/account/email', 100);
416 elgg_extend_view(
'forms/account/settings',
'core/settings/account/language', 100);
417 elgg_extend_view(
'forms/account/settings',
'core/settings/account/default_access', 100);
421 $events->registerHandler(
'init',
'system',
'_elgg_user_settings_init');
elgg_get_config($name, $site_guid=0)
Get an Elgg configuration value.
elgg_push_breadcrumb($title, $link=null)
Adds a breadcrumb to the breadcrumbs stack.
_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.
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_view_exists($view, $viewtype= '', $recurse=true)
Returns whether the specified view exists.
_elgg_user_settings_menu_setup()
Set up the menu for user settings.
elgg_extract($key, array $array, $default=null, $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
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_echo($message_key, $args=array(), $language="")
Given a message key, returns an appropriately translated full-text string.
_elgg_set_user_name()
Set a user's display name.
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_extend_view($view, $view_extension, $priority=501, $viewtype= '')
Extends a view with another view.
_elgg_set_user_default_access()
Set a user's default access level.
elgg_in_context($context)
Check if this context exists anywhere in the stack.
elgg require
Throw an error if the required package isn't present.
elgg_register_page_handler($identifier, $function)
Registers a page handler for a particular identifier.
_elgg_set_user_email()
Set a user's email address.
elgg global
Pointer to the global context.
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.
elgg_register_menu_item($menu_name, $menu_item)
Register an item for an Elgg menu.
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_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.
$language
$vars['language']
elgg_get_logged_in_user_guid()
Return the current logged in user by guid.