You are here

function dfp_update_7002 in Doubleclick for Publishers (DFP) 7

Same name and namespace in other branches
  1. 7.2 dfp.install \dfp_update_7002()

Fix a typo in the name of the DFP Ad Categories vocabulary.

File

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

Code

function dfp_update_7002() {
  $vocabulary_machinename = 'dfp_ad_categories';
  $existing_vocabulary = taxonomy_vocabulary_machine_name_load($vocabulary_machinename);
  if ($existing_vocabulary && $existing_vocabulary->name == 'DFP Ad Catergories') {
    $existing_vocabulary->name = 'DFP Ad Categories';
    taxonomy_vocabulary_save($existing_vocabulary);
  }
}