function DynamicBackgroundReaction::execute in Dynamic Background 7
Same name and namespace in other branches
- 6 modules/dynamic_background_context/plugins/dynamic_background_context_reaction.inc \DynamicBackgroundReaction::execute()
- 7.2 modules/dynamic_background_context/plugins/dynamic_background_context_reaction.inc \DynamicBackgroundReaction::execute()
Find the selected image and return its id.
File
- modules/
dynamic_background_context/ plugins/ dynamic_background_context_reaction.inc, line 33
Class
Code
function execute() {
$image_id = NULL;
foreach ($this
->get_contexts() as $context) {
$image_id = $this
->find_selected_image($context);
}
return $image_id;
}