function advagg_validator_admin_hide_good_files

cis7 advagg_validator.admin.inc advagg_validator_admin_hide_good_files($info)
cle7 advagg_validator.admin.inc advagg_validator_admin_hide_good_files($info)
elmsmedia7 advagg_validator.admin.inc advagg_validator_admin_hide_good_files($info)
icor7 advagg_validator.admin.inc advagg_validator_admin_hide_good_files($info)
meedjum_blog7 advagg_validator.admin.inc advagg_validator_admin_hide_good_files($info)
mooc7 advagg_validator.admin.inc advagg_validator_admin_hide_good_files($info)

Do not display info on a file if it is valid.

Parameters

array $info: Array containing info about validators and if the file is valid.

Return value

array $info array minus data if that file is valid.

8 calls to advagg_validator_admin_hide_good_files()
advagg_validator_admin_test_advagg_css_callback in sites/all/modules/ulmus/advagg/advagg_validator/advagg_validator.admin.inc
Display file info via ajax callback.
advagg_validator_admin_test_advagg_css_directory_callback in sites/all/modules/ulmus/advagg/advagg_validator/advagg_validator.admin.inc
Display file info via ajax callback.
advagg_validator_admin_test_advagg_css_directory_submit in sites/all/modules/ulmus/advagg/advagg_validator/advagg_validator.admin.inc
Display file info in a drupal message.
advagg_validator_admin_test_advagg_css_subdirectory_callback in sites/all/modules/ulmus/advagg/advagg_validator/advagg_validator.admin.inc
Display file info via ajax callback.
advagg_validator_admin_test_advagg_css_subdirectory_submit in sites/all/modules/ulmus/advagg/advagg_validator/advagg_validator.admin.inc
Display file info in a drupal message.

... See full list

File

sites/all/modules/ulmus/advagg/advagg_validator/advagg_validator.admin.inc, line 480
Admin page callbacks for the advagg validator module.

Code

function advagg_validator_admin_hide_good_files($info) {
  $output = array();
  foreach ($info as $filename => $validators) {
    foreach ($validators as $v_name => $v_data) {
      if (!empty($v_data['validity'])) {
        $output[$filename][$v_name] = 'valid';
        continue;
      }
      $output[$filename][$v_name] = $v_data;
    }
  }
  return $output;
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.