You are here

akamai.install in Akamai 6.2

Install and updates for the Akamai module.

File

akamai.install
View source
<?php

/**
 * @file
 * Install and updates for the Akamai module.
 */

/**
 * Update hook for backporting Drupal 7 module to Drupal 6.
 */
function akamai_update_6001() {
  $ret = array();
  $vars = array(
    'akamai_basepath' => 'AkamaiCC_basepath',
    'akamai_username' => 'AkamaiCC_name',
    'akamai_password' => 'AkamaiCC_pwd',
    'akamai_action' => 'AkamaiCC_action',
    'akamai_domain' => 'AkamaiCC_domain',
    'akamai_email' => 'AkamaiCC_email',
  );
  foreach ($vars as $new => $old) {
    $ret[] = update_sql("UPDATE {variable} SET name = '{$new}' WHERE name = '{$old}'");
  }
  variable_del('akamai_wsdl');
  variable_set('akamai_restapi', 'https://api.ccu.akamai.com/ccu/v2/queues/default');
  $ret[] = array(
    'success' => TRUE,
    'query' => t('Updated Akamai configuration variable names.'),
  );
  return $ret;
}

Functions

Namesort descending Description
akamai_update_6001 Update hook for backporting Drupal 7 module to Drupal 6.