function system_archiver_info_alter

Same name and namespace in other branches
  1. 10 core/modules/system/system.module \system_archiver_info_alter()

Implements hook_archiver_info_alter().

File

core/modules/system/system.module, line 1217

Code

function system_archiver_info_alter(&$info) {
    if (!class_exists(\ZipArchive::class)) {
        // PHP Zip extension is missing.
        unset($info['Zip']);
    }
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.