You are here

dynamic_background.api.php in Dynamic Background 6

Same filename and directory in other branches
  1. 7.2 dynamic_background.api.php
  2. 7 dynamic_background.api.php

Hooks provided by the dynamic background module.

File

dynamic_background.api.php
View source
<?php

/**
 * @file
 * Hooks provided by the dynamic background module.
 *
 */

/**
 * Sub-modules that provieds image selection to the css generation process should
 * implement this hook.
 *
 * @param array $vars
 * @return array
 */
function hook_dynamic_background_css($vars) {
  return array(
    'image' => 'PATH TO IMAGE',
    'css_configuration' => 'DRUPAL VARIABLE WITH CSS CONFIGURATION',
    'weight' => 'WEIGHT OF THE CSS',
  );
}

Functions

Namesort descending Description
hook_dynamic_background_css Sub-modules that provieds image selection to the css generation process should implement this hook.