You are here

function background_image_system_info_alter in Background Image 2.x

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

Implements hook_system_info_alter().

File

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

Code

function background_image_system_info_alter(&$info, Extension $file, $type) {

  // Inject a "Background Image" region for all themes.
  if ($type == 'theme') {
    $info['regions'] = [
      'background_image' => 'Background Image',
    ] + $info['regions'];
  }
}