saveProfileChanges

Description

This function is responsible for actually saving the profile changes.

Syntax

void saveProfileChanges (array &$profile_vars, array &$post_errors, int $memID)



Parameter &$profile_vars

Expected type: Array
Description: An array containing strings indicating which profile fields we want to save



Parameter &$post_errors

Expected type: Array
Description: An array containing keys indicating which error(s) have occurred, if any



Parameter $memID

Expected type: Integer
Description: The ID of the member whose profile is being edited


Notes

  • Called by ModifyProfile2 to save changes to the profile
  • Checks permissions to make sure you have permission to edit the profile
  • Validates all the form data and categorizes it by section
  • Calls the appropriate function to save the changes from each section
Advertisement: