You are here

function pet_pet_list in Previewable email templates 8.3

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. 7 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 96
Rules integration for the Pet module.

Code

function pet_pet_list() {
  $list = [];
  foreach (Pet::loadMultiple() as $pet) {
    $list[$pet->name] = $pet->title;
  }
  return $list;
}