Display what files where deleted via ajax callback.
Sujets associés
1 string reference to 'advagg_admin_clear_file_aggregate_callback'
- advagg_admin_operations_form dans ./
advagg.admin.inc - Form builder; Do advagg operations.
Fichier
-
./
advagg.admin.inc, line 1898
Code
function advagg_admin_clear_file_aggregate_callback($form, &$form_state) {
if (!empty($form_state['values']['error'])) {
return '<div id="advagg-clear-file-aggregate-ajax"></div>';
}
$info = advagg_admin_clear_file_aggregates($form_state['values']['filename']);
if (empty($info)) {
form_set_error('filename', t('Please input a valid filename.'));
return '<div id="advagg-clear-file-aggregate-ajax"></div>';
}
else {
if (module_exists('httprl')) {
$output = httprl_pr($info);
}
else {
$output = '<pre>' . print_r($info, TRUE) . '</pre>';
}
return '<div id="advagg-clear-file-aggregate-ajax">' . $output . '</div>';
}
}