Moodle APIs 3.9
Moodle 3.9.13+ (Build: 20220325)
Functions
editlib.php File Reference

This file contains function used when editing a users profile and preferences. More...

Functions

 cancel_email_update ($userid)
 Cancels the requirement for a user to update their email address. More...
 
 useredit_get_disabled_name_fields ($enabledadditionalusernames=null)
 Gets user name fields not enabled from the setting fullnamedisplay. More...
 
 useredit_get_enabled_name_fields ()
 Gets enabled (from fullnameformate setting) user name fields in appropriate order. More...
 
 useredit_get_required_name_fields ()
 Return required user name fields for forms. More...
 
 useredit_load_preferences (&$user, $reload=true)
 Loads the given users preferences into the given user object. More...
 
 useredit_setup_preference_page ($userid, $courseid)
 Performs the common access checks and page setup for all user preference pages. More...
 
 useredit_shared_definition (&$mform, $editoroptions, $filemanageroptions, $user)
 Powerful function that is used by edit and editadvanced to add common form elements/rules/etc. More...
 
 useredit_update_bounces ($user, $usernew)
 Updates the user email bounce + send counts when the user is edited. More...
 
 useredit_update_interests ($user, $interests)
 Updates a users interests. More...
 
 useredit_update_picture ()
 
 useredit_update_trackforums ($user, $usernew)
 Updates the forums a user is tracking when the user is edited. More...
 
 useredit_update_user_preference ($usernew)
 Updates the user preferences for the given user. More...
 

Detailed Description

This file contains function used when editing a users profile and preferences.

License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later