You are here

function profile2_create in Profile 2 7.2

Same name and namespace in other branches
  1. 7 profile2.module \profile2_create()

Create a new profile object.

6 calls to profile2_create()
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_by_uid_load in ./profile2.module
Menu load callback.
profile2_category_access in ./profile2.module
Menu item access callback - check if a user has access to a profile category.
profile2_form_user_profile_form_alter in ./profile2.module
Implements hook_form_FORM_ID_alter() for the user edit form.

... See full list

1 string reference to 'profile2_create'
Profile::save in ./profile2.module
Permanently saves the entity.

File

./profile2.module, line 494
Support for configurable user profiles.

Code

function profile2_create(array $values) {
  return new Profile($values);
}