function akamai_cache_control_submit in Akamai 6.2
Same name and namespace in other branches
- 6 akamai.admin.inc \akamai_cache_control_submit()
- 7 akamai.admin.inc \akamai_cache_control_submit()
- 7.2 akamai.admin.inc \akamai_cache_control_submit()
Submit handler for akamai_cache_control().
Process the settings and submit to Akamai
File
- ./
akamai.admin.inc, line 127 - Akamai is a registered trademark of Akamai Technologies, Inc.
Code
function akamai_cache_control_submit($form, &$form_state) {
$paths = split("\n", filter_xss($form_state['values']['paths']));
$action = $form_state['values']['refresh'];
$overrides = array(
'action' => $form_state['values']['refresh'],
'domain' => $form_state['values']['domain_override'],
'email' => $form_state['values']['email'],
);
$did_clear = akamai_clear_url($paths, $overrides);
if ($did_clear) {
$message = t("Akamai Cache Request has been made successfully, please allow 10 minutes for changes to take effect.") . theme("item_list", $paths);
drupal_set_message($message);
}
else {
drupal_set_message(t("There was a problem with your cache control request. Check the !watchdog messages for more information.", array(
'!watchdog' => l(t("watchdog"), "admin/reports/dblog"),
), 'error'));
}
}