function party_load in Party 7
Same name and namespace in other branches
- 8.2 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()
- drush_party_user_login in modules/
party_user/ party_user.drush.inc - Displays a one time login link for the given party.
- PartyAcquisition::findMatch in includes/
party.acquisition.inc - Find a match for the given parameters.
- PartyTestCase::testPartyCRUD in tests/
party.test - Test CRUD on the Party Entities
- party_entity_delete in ./
party.module - Implements hook_entity_delete.
- party_entity_update in ./
party.module - Implements hook_entity_update($entity, $type);
File
- ./
party.module, line 996 - 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;
}