You are here

function profile2_save in Profile 2 7.2

Same name and namespace in other branches
  1. 7 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 511
Support for configurable user profiles.

Code

function profile2_save(Profile $profile) {
  return $profile
    ->save();
}