hook_archiver_info_alter

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

Hooks
Define functions that alter the behavior of Drupal core.

File

core/lib/Drupal/Core/File/file.api.php, line 135
Hooks related to the File management system.

Code

function hook_archiver_info_alter(&$info) {
  $info['tar']['extensions'][] = 'tgz';
}
doc_Drupal
2016-10-29 09:17:49
Comments
Leave a Comment

Please login to continue.