You are here

function hook_default_pet in Previewable email templates 8.3

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

Implements hook_default_ENTITY_TYPE().

Return value

array An array of default previewable email templates, keyed by machine names.

See also

hook_default_pet_alter()

Related topics

File

./pet.api.php, line 45
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 hook_default_pet() {
  $defaults['some_default_pet'] = entity_create('pet', array(
    'name' => 'some_default_pet',
    'title' => 'some default pet title',
    'subject' => 'subject',
    'mail_body' => 'body default',
    'reply_to' => NULL,
    'cc' => 'cc@example.com',
    'bcc' => 'bcc@example.com',
    'recipient_callback' => 'MY_MODULE_recipients_callback',
  ));
  return $defaults;
}