You are here

function pet_pet_list in Previewable email templates 7

Same name and namespace in other branches
  1. 8.4 pet.rules.inc \pet_pet_list()
  2. 8 pet.rules.inc \pet_pet_list()
  3. 8.3 pet.rules.inc \pet_pet_list()

Return list of all PETs for rules configuration.

1 string reference to 'pet_pet_list'
pet_rules_action_info in ./pet.rules.inc
Implements hook_rules_action_info().

File

./pet.rules.inc, line 90
Rules integration for the PET module.

Code

function pet_pet_list() {
  $list = array();
  foreach (pet_load_multiple(FALSE) as $pet) {
    $list[$pet->name] = $pet->title;
  }
  return $list;
}