You are here

function background_image_theme in Background Image 2.0.x

Same name and namespace in other branches
  1. 8 background_image.module \background_image_theme()
  2. 2.x background_image.module \background_image_theme()

Implements hook_theme().

File

./background_image.module, line 126
Background Image module's procedural hooks and functions.

Code

function background_image_theme($existing, $type, $theme, $path) {
  $module_path = drupal_get_path('module', 'background_image');
  $hooks['container__background_image'] = [
    'base hook' => 'container',
    'path' => "{$module_path}/templates",
    'type' => 'module',
  ];
  $hooks['region__background_image'] = [
    'base hook' => 'region',
    'path' => "{$module_path}/templates",
    'type' => 'module',
  ];
  return $hooks;
}