You are here

function party_create in Party 7

Same name and namespace in other branches
  1. 8.2 party.module \party_create()

Create a party object ready for saving to the database.

Parameters

$info: An array carrying all the important information.

Return value

A party object that can be passed to party_save(), or FALSE if the array was not suitable for creating a party.

9 calls to party_create()
PartyAccessTestCase::setUp in tests/party_access.test
Set up the testing environment.
PartyAcquisition::acquire in includes/party.acquisition.inc
Create or acquire a party based off the given parameters.
PartyAcquisitionTestCase::setUp in tests/party_acquisition.test
Set up the testing environment.
PartyPrimaryFieldsTestCase::testPrimaryFieldsBasic in tests/party_primary_fields.test
Test the basics of primary fields.
PartyTestCase::testPartyCRUD in tests/party.test
Test CRUD on the Party Entities

... See full list

File

./party.module, line 1066
Provides a generic CRM party entity.

Code

function party_create($info = array()) {
  return entity_create('party', $info);
}