You are here

function DynamicBackgroundReaction::execute in Dynamic Background 7

Same name and namespace in other branches
  1. 6 modules/dynamic_background_context/plugins/dynamic_background_context_reaction.inc \DynamicBackgroundReaction::execute()
  2. 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

DynamicBackgroundReaction

Code

function execute() {
  $image_id = NULL;
  foreach ($this
    ->get_contexts() as $context) {
    $image_id = $this
      ->find_selected_image($context);
  }
  return $image_id;
}