akamai.install in Akamai 6.2
Same filename and directory in other branches
Install and updates for the Akamai module.
File
akamai.installView 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
Name![]() |
Description |
---|---|
akamai_update_6001 | Update hook for backporting Drupal 7 module to Drupal 6. |