You are here

function casetracker_case_load in Case Tracker 7.2

Fetch a casetracker_case object. Make sure that the wildcard you choose in the casetracker_case entity definition fits the function name here.

Parameters

$cid: Integer specifying the casetracker_case id.

$reset: A boolean indicating that the internal cache should be reset.

Return value

A fully-loaded $case object or FALSE if it cannot be loaded.

See also

casetracker_case_load_multiple()

File

./casetracker_case.inc, line 51
This file concentrates all general functionality related to Cases in Case Tracker, leaving to the other files in /admin the stuff related to CRUD and structural configuration

Code

function casetracker_case_load($cid, $reset = FALSE) {
  $cases = casetracker_case_load_multiple(array(
    $cid,
  ), array(), $reset);
  return reset($cases);
}