You are here

function preview_link_theme in Preview Link 8

Same name and namespace in other branches
  1. 2.x preview_link.module \preview_link_theme()
  2. 2.0.x preview_link.module \preview_link_theme()

Implements hook_theme().

File

./preview_link.module, line 44
Module file.

Code

function preview_link_theme($existing, $type, $theme, $path) {
  return [
    'preview_link' => [
      'path' => $path . '/templates',
      'template' => 'preview-link',
      'variables' => [
        'title' => NULL,
        'link' => NULL,
        'description' => NULL,
        'remaining_lifetime' => NULL,
      ],
    ],
  ];
}