You are here

function party_activity_load in Party 8.2

Same name and namespace in other branches
  1. 7 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 171
Functions and important hooks for the party_activity module

Code

function party_activity_load($party_activity_id, $reset = FALSE) {
  $party_activities = party_activity_load_multiple(array(
    $party_activity_id,
  ), array(), $reset);
  return reset($party_activities);
}