function hook_dynamic_background_css in Dynamic Background 6
Same name and namespace in other branches
- 7.2 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 should implement this hook.
Parameters
array $vars:
Return value
array
7 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 - Implementation of hook_dynamic_background_css().
- dynamic_background_node_dynamic_background_css in modules/
dynamic_background_node/ dynamic_background_node.module - Implements hook_dynamic_background_css().
- dynamic_background_panels_dynamic_background_css in modules/
dynamic_background_panels/ dynamic_background_panels.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() and sorts the returned image configurations based on weight. This function may be called by more then one preprocessor function, so a static cache applied.
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' => 'DRUPAL VARIABLE WITH CSS CONFIGURATION',
'weight' => 'WEIGHT OF THE CSS',
);
}