function party_activity_load in Party 7
Same name and namespace in other branches
- 8.2 modules/party_activity/party_activity.module \party_activity_load()
Fetch a party activity object
Parameters
$activity_id: Intefer specifying the party activity id.
$reset: A boolean indicating whether the internal cache should be reset
Return value
A fully loaded PartyActivity object or false.
File
- modules/
party_activity/ party_activity.module, line 205 - Functions and important hooks for the party_activity module
Code
function party_activity_load($id, $reset = FALSE) {
$party_activities = party_activity_load_multiple(array(
$id,
), array(), $reset);
return reset($party_activities);
}