function hook_dynamic_background_css in Dynamic Background 7.2
Same name and namespace in other branches
- 6 dynamic_background.api.php \hook_dynamic_background_css()
- 7 dynamic_background.api.php \hook_dynamic_background_css()
Sub-modules that provieds image selection to the css generation process have to implement this hook.
Parameters
array $vars:
Return value
array
8 functions implement hook_dynamic_background_css()
Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.
- dynamic_background_blog_dynamic_background_css in modules/
dynamic_background_blog/ dynamic_background_blog.module - Implements hook_dynamic_background_css().
- dynamic_background_context_dynamic_background_css in modules/
dynamic_background_context/ dynamic_background_context.module - Implements hook_dynamic_background_css().
- dynamic_background_dynamic_background_css in ./
dynamic_background.module - Implements hook_dynamic_background_css().
- dynamic_background_inherit_dynamic_background_css in modules/
dynamic_background_inherit/ dynamic_background_inherit.module - Implements hook_dynamic_background_css().
- dynamic_background_node_dynamic_background_css in modules/
dynamic_background_node/ dynamic_background_node.module - Implements hook_dynamic_background_css().
1 invocation of hook_dynamic_background_css()
- dynamic_background_load_image_configuration in ./
dynamic_background.module - Helper function that calls hook_dynamic_background_css().
File
- ./
dynamic_background.api.php, line 16 - Hooks provided by the dynamic background module.
Code
function hook_dynamic_background_css($vars) {
return array(
'image' => 'PATH TO IMAGE',
'css_configuration' => array(
'selector' => 'CSS SELECTOR',
'css' => 'CSS OPTIONS',
),
'image_style' => 'IMAGE STYLE NAME',
);
}