You are here

function forward_theme in Forward 4.x

Same name and namespace in other branches
  1. 8.3 forward.module \forward_theme()
  2. 8 forward.module \forward_theme()
  3. 8.2 forward.module \forward_theme()
  4. 6 forward.module \forward_theme()
  5. 7.3 forward.module \forward_theme()
  6. 7 forward.module \forward_theme()
  7. 7.2 forward.module \forward_theme()
  8. 4.0.x forward.module \forward_theme()

Implements hook_theme().

File

./forward.module, line 53
Allows forwarding of entities by email.

Code

function forward_theme($existing, $type, $theme, $path) {
  return [
    'forward' => [
      'variables' => [
        'email' => NULL,
        'recipient' => NULL,
        'header' => NULL,
        'footer' => NULL,
        'message' => NULL,
        'settings' => NULL,
        'entity' => NULL,
        'content' => NULL,
        'view_mode' => NULL,
        'email_format' => NULL,
      ],
    ],
    'forward_link_formatter' => [
      'variables' => [
        'link' => NULL,
      ],
    ],
  ];
}