function dynamic_background_dynamic_background_css in Dynamic Background 7
Same name and namespace in other branches
- 6 dynamic_background.module \dynamic_background_dynamic_background_css()
- 7.2 dynamic_background.module \dynamic_background_dynamic_background_css()
Implements hook_dynamic_background_css for the main module.
File
- ./
dynamic_background.module, line 90 - This module enables administrators to upload images used as background on the site. The selected background image link is exposed as either $background in the page.tpl file or as /background.css.
Code
function dynamic_background_dynamic_background_css($vars) {
$image = variable_get('dynamic_background_active', FALSE);
$image_style = variable_get('dynamic_background_image_style', FALSE);
if ($image) {
return array(
'image' => $image,
'configuration' => variable_get('dynamic_background_css', array()),
'image_style' => $image_style ? $image_style['style'] : FALSE,
);
}
}