You are here

function dfp_update_7003 in Doubleclick for Publishers (DFP) 7.2

Same name and namespace in other branches
  1. 7 dfp.install \dfp_update_7003()

Prepend ths NetworkID with a "/" as per Google's recommendations.

File

./dfp.install, line 285
Installation file for DFP module.

Code

function dfp_update_7003() {
  $current_network_id = variable_get('dfp_network_id', '');
  if (!empty($current_network_id) && strpos($current_network_id, "/") !== 0) {
    variable_set('dfp_network_id', "/" . $current_network_id);
    drupal_set_message(t('Your network ID has been prepended with a "/" to match Google\'s recommendations. It\'s possible this could effect your reporting on DFP so if you are not certain this change is right for your site, you should remove the "/" by editing the network id on the <a href="admin/structure/dfp_ads/settings">global DFP settings form</a>.'), 'warning');
  }
}