function profile2_save in Profile 2 7
Same name and namespace in other branches
- 7.2 profile2.module \profile2_save()
Saves a profile to the database.
Parameters
$profile: The profile object.
3 calls to profile2_save()
- Profile2CRUDTestCase::testAccess in ./
profile2.test - Tests optional access parameters.
- Profile2CRUDTestCase::testCRUD in ./
profile2.test - Tests CRUD for a profile related to a user and one unrelated to a user.
- profile2_form_submit_handler in ./
profile2.module - Submit handler that builds and saves all profiles in the form.
File
- ./
profile2.module, line 346 - Support for configurable user profiles.
Code
function profile2_save(Profile $profile) {
return $profile
->save();
}