You are here

function MY_MODULE_recipients_callback in Previewable email templates 8.3

Same name and namespace in other branches
  1. 8.4 pet.api.php \MY_MODULE_recipients_callback()
  2. 8 pet.api.php \MY_MODULE_recipients_callback()
  3. 7 pet.api.php \MY_MODULE_recipients_callback()

Sample email recipient callback.

In practice this would likely look up emails based on the node info.

Related topics

1 string reference to 'MY_MODULE_recipients_callback'
hook_default_pet in ./pet.api.php
Implements hook_default_ENTITY_TYPE().

File

./pet.api.php, line 64
This file contains no working PHP code; it exists to provide additional documentation for doxygen as well as to document hooks in the standard Drupal manner.

Code

function MY_MODULE_recipients_callback($node = NULL) {
  return array(
    'allie@example.com',
    'bob@example.com',
  );
}