You are here

function dfp_context_reaction_outofpage::execute in Doubleclick for Publishers (DFP) 7

Same name and namespace in other branches
  1. 7.2 plugins/contexts/dfp_context_reaction_outofpage.inc \dfp_context_reaction_outofpage::execute()

Disable any tags that should be disabled based on context.

File

plugins/contexts/dfp_context_reaction_outofpage.inc, line 52
Context reaction plugin for DFP Out of page.

Class

dfp_context_reaction_outofpage
Expose DFP Out of page as context reactions.

Code

function execute() {

  // Check each currently set context to see if the DFP tag specified by
  // machinename should be displayed or not.
  foreach ($this
    ->get_contexts() as $context_name => $context) {
    if (isset($context->reactions['dfp_outofpage'])) {
      foreach ($context->reactions['dfp_outofpage'] as $key => $value) {
        if (!empty($value)) {
          $this->out_of_page_tags[$key] = $value;
        }
      }
      break;
    }
  }
}