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 ModifyProfile to save changes to notifications and anything not covered by saveProfileFields
  • Checks permissions to make sure you have permission to edit the profile
  • Validates all the form data and categorizes it by section
Advertisement: