Declare archivers to the system.
An archiver is a class that is able to package and unpackage one or more files into a single possibly compressed file. Common examples of such files are zip files and tar.gz files. All archiver classes must implement ArchiverInterface.
Each entry should be keyed on a unique value, and specify three additional keys:
Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.
function hook_archiver_info() {
return array(
'tar' => array(
'class' => 'ArchiverTar',
'extensions' => array(
'tar',
'tar.gz',
'tar.bz2',
),
),
);
}