You are here

function party_create in Party 8.2

Same name and namespace in other branches
  1. 7 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.

6 calls to party_create()
PartyAccessTestCase::setUp in tests/party_access.test
Set up the testing environment.
PartyTestCase::testPartyCRUD in tests/party.test
Test CRUD on the Party Entities
party_devel_generate_party_add_party in modules/party_devel/devel_generate.inc
Create one party. Used by both batch and non-batch code branches.
party_hat_context_create_party_with_hats in modules/party_hat/plugins/contexts/party_new_with_hats.inc
Create the context
party_user_create_party_for_user in modules/party_user/party_user.module
party_user_create_party_for_user

... See full list

File

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

Code

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