function hook_archiver_info_alter

Same name and namespace in other branches
  1. 7.x modules/system/system.api.php \hook_archiver_info_alter()
  2. 9 core/lib/Drupal/Core/File/file.api.php \hook_archiver_info_alter()
  3. 8.9.x core/lib/Drupal/Core/File/file.api.php \hook_archiver_info_alter()
  4. 10 core/lib/Drupal/Core/File/file.api.php \hook_archiver_info_alter()

Alter archiver information declared by other modules.

See hook_archiver_info() for a description of archivers and the archiver information structure.

Parameters

$info: Archiver information to alter (return values from hook_archiver_info()).

Related topics

1 function implements hook_archiver_info_alter()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

system_archiver_info_alter in core/modules/system/system.module
Implements hook_archiver_info_alter().
1 invocation of hook_archiver_info_alter()
ArchiverManager::__construct in core/lib/Drupal/Core/Archiver/ArchiverManager.php
Constructs an ArchiverManager object.

File

core/lib/Drupal/Core/File/file.api.php, line 142

Code

function hook_archiver_info_alter(&$info) {
    $info['tar']['extensions'][] = 'tgz';
}

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