Display file info in a drupal message.
Sujets associés
1 string reference to 'advagg_admin_get_file_info_submit'
- advagg_admin_info_form dans ./
advagg.admin.inc - Form builder; Show info about advagg and advagg settings.
Fichier
-
./
advagg.admin.inc, line 1411
Code
function advagg_admin_get_file_info_submit($form, &$form_state) {
// @codingStandardsIgnoreLine
if (!empty($form_state['input']['ajax_page_state'])) {
return;
}
$info = advagg_admin_get_file_info($form_state['values']['filename']);
if (module_exists('httprl')) {
$output = httprl_pr($info);
}
else {
$output = '<pre>' . check_plain(print_r($info, TRUE)) . '</pre>';
}
// @ignore security_dsm
drupal_set_message($output);
}