You are here

function party_load in Party 8.2

Same name and namespace in other branches
  1. 7 party.module \party_load()

Load a party entity from the database.

Parameters

$pid: The party ID.

$reset: Whether to reset the party_load_multiple cache.

Return value

A party object.

8 calls to party_load()
PartyTestCase::testPartyCRUD in tests/party.test
Test CRUD on the Party Entities
party_entity_update in ./party.module
Implements hook_entity_update($entity, $type);
party_hat_get_hats in modules/party_hat/party_hat.module
Get all the Hats a Party is Wearing
party_preprocess_entity in ./party.module
Implements hook_preprocess_HOOK().
party_simplenews_simplenews_subscriber_insert in modules/party_simplenews/party_simplenews.module
Implements hook_simplenews_subscriber_insert.

... See full list

File

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

Code

function party_load($pid = NULL, $reset = FALSE) {
  $pids = !empty($pid) ? array(
    $pid,
  ) : array();
  $party = party_load_multiple($pids, $reset);
  return $party ? reset($party) : FALSE;
}