You are here

function pet_get_pets in Previewable email templates 6

Return all PETs.

2 calls to pet_get_pets()
pet_admin_page in ./pet.admin.inc
PET administration page. Display a list of existing PETs.
pet_option_list in ./pet.module
Return list of PETs for select list.

File

./pet.module, line 311
Previewable E-mail Template module.

Code

function pet_get_pets() {
  $pets = array();
  $result = db_query("SELECT * FROM {pets} ORDER BY name");
  while ($pet = db_fetch_object($result)) {
    $pets[] = $pet;
  }
  return $pets;
}