You are here

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

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

Return a keyed array containing the settings.

File

plugins/contexts/dfp_context_reaction_settings.inc, line 44
Context reaction plugin for DFP ads.

Class

dfp_context_reaction_settings
Expose DFP variables as context reactions.

Code

function execute(&$tag) {
  foreach ($this
    ->get_contexts() as $context_name => $context) {
    foreach ($context->reactions['dfp_settings']['targeting'] as $key => $value) {
      $tag->settings['targeting'][] = $value;
    }
  }
}