You are here

function pet_load_multiple in Previewable email templates 7

Same name and namespace in other branches
  1. 8.4 pet.module \pet_load_multiple()
  2. 8 pet.module \pet_load_multiple()

Loads multiple PETs by ID or based on a set of conditions.

Parameters

$pids: An array of PET IDs.

$conditions: An array of conditions on the {pets} table in the form 'field' => $value.

$reset: Whether to reset the internal PET loading cache.

Return value

An array of PET objects indexed by pid.

See also

entity_load()

2 calls to pet_load_multiple()
pet_load in ./pet.module
Loads a PET by ID.
pet_pet_list in ./pet.rules.inc
Return list of all PETs for rules configuration.

File

./pet.module, line 251
Previewable Email Template module.

Code

function pet_load_multiple($pids = array(), $conditions = array(), $reset = FALSE) {
  return entity_load('pet', $pids, $conditions, $reset);
}