8.5.x file.api.php hook_archiver_info_alter(&$info)
8.0.x file.api.php hook_archiver_info_alter(&$info)
8.1.x file.api.php hook_archiver_info_alter(&$info)
8.2.x file.api.php hook_archiver_info_alter(&$info)
8.3.x file.api.php hook_archiver_info_alter(&$info)
8.4.x file.api.php hook_archiver_info_alter(&$info)
8.6.x file.api.php hook_archiver_info_alter(&$info)
7.x system.api.php hook_archiver_info_alter(&$info)

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 invocation of hook_archiver_info_alter()
archiver_get_info in includes/common.inc
Retrieves a list of all available archivers.

File

modules/system/system.api.php, line 4106
Hooks provided by Drupal core and the System module.

Code

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