You are here

function dynamic_banner_theme in Dynamic Banner 8

Same name and namespace in other branches
  1. 6 dynamic_banner.module \dynamic_banner_theme()
  2. 7.2 dynamic_banner.module \dynamic_banner_theme()
  3. 7 dynamic_banner.module \dynamic_banner_theme()
  4. 8.x dynamic_banner.module \dynamic_banner_theme()

Implements hook_theme(). theme template used in module.

File

./dynamic_banner.module, line 59
Distributed under GNU GPL version 3

Code

function dynamic_banner_theme() {
  $theme = array(
    'banner_output' => array(
      'variables' => [
        'bannerarr' => array(
          'url' => NULL,
          'text' => NULL,
          'link' => NULL,
          'display_setting' => NULL,
          'display_errors' => NULL,
        ),
      ],
      'path' => drupal_get_path('module', 'dynamic_banner') . '/templates',
      'template' => 'banner_output_template',
    ),
  );
  return $theme;
}