Display file info via ajax callback.
Related topics
1 string reference to 'advagg_admin_get_file_info_callback'
- advagg_admin_info_form in ./
advagg.admin.inc - Form builder; Show info about advagg and advagg settings.
File
-
./
advagg.admin.inc, line 1430
Code
function advagg_admin_get_file_info_callback($form, &$form_state) {
if (!empty($form_state['values']['error'])) {
return '<div id="advagg-file-info-ajax"></div>';
}
$info = advagg_admin_get_file_info($form_state['values']['filename']);
if (empty($info)) {
form_set_error('filename', t('Please input a valid aggregate filename.'));
return '<div id="advagg-file-info-ajax"></div>';
}
else {
if (module_exists('httprl')) {
$output = httprl_pr($info);
}
else {
$output = '<pre>' . print_r($info, TRUE) . '</pre>';
}
return '<div id="advagg-file-info-ajax">' . $output . '</div>';
}
}