function pet_load in Previewable email templates 7
Same name and namespace in other branches
- 8.4 pet.module \pet_load()
- 8 pet.module \pet_load()
- 6 pet.module \pet_load()
Loads a PET by ID.
2 calls to pet_load()
- pet_action_send_pet in ./
pet.rules.inc - Callback for eponymous rules action.
- pet_send_mail in ./
pet.module - Send tokenized email to a list of recipients.
2 string references to 'pet_load'
- pet_entity_info in ./
pet.module - Implements hook_entity_info().
- pet_form in includes/
pet.admin.inc - Generate the PET editing form.
File
- ./
pet.module, line 230 - Previewable Email Template module.
Code
function pet_load($pid) {
$pets = pet_load_multiple(array(
$pid,
), array());
return $pets ? reset($pets) : FALSE;
}