You are here

function dfp_dfp_tag_load_alter in Doubleclick for Publishers (DFP) 7.2

Same name and namespace in other branches
  1. 7 dfp.module \dfp_dfp_tag_load_alter()

Alter a dfp tag object to integrate with the contexts module.

File

./dfp.module, line 540

Code

function dfp_dfp_tag_load_alter(&$tag) {

  // Execute context reactions for each plugin.
  if (module_exists('context')) {
    $contexts = dfp_context_registry();
    foreach ($contexts['reactions'] as $key => $val) {
      if ($plugin = context_get_plugin('reaction', $key)) {
        $plugin
          ->execute($tag);
      }
    }
  }

  // Handle ad testing.
  module_load_include('inc', 'dfp', 'dfp.adtest');
  dfp_adtest_alter_tag($tag);
}