function dynamic_background_css in Dynamic Background 6
Same name and namespace in other branches
- 7.2 dynamic_background.module \dynamic_background_css()
- 7 dynamic_background.module \dynamic_background_css()
Menu callback function used to generate an body style css with the selected background image. The callback is /background.css.
3 string references to 'dynamic_background_css'
- dynamic_background_admin_settings in includes/
settings.admin.inc - The dynamic background administration settings form.
- dynamic_background_dynamic_background_css in ./
dynamic_background.module - Implementation of hook_dynamic_background_css().
- dynamic_background_menu in ./
dynamic_background.module - Implementation of hook_menu().
File
- ./
dynamic_background.module, line 152 - 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_css() {
// Load image configuration.
$images_conf = dynamic_background_load_image_configuration($vars);
// Generate the css and add it to the site.
if (isset($images_conf)) {
$css = dynamic_background_create_css($images_conf);
if ($css) {
echo $css;
}
}
}