update_manager_archive_extract
function update_manager_archive_extract
update_manager_archive_extract($file, $directory)
Unpacks a downloaded archive file.
Parameters
string $file: The filename of the archive you wish to extract.
string $directory: The directory you wish to extract the archive into.
Return value
Archiver The Archiver object used to extract the archive.
Throws
Exception
File
- core/modules/update/update.manager.inc, line 150
- Administrative screens and processing functions of the Update Manager module.
Code
function update_manager_archive_extract($file, $directory) { $archiver = archiver_get_archiver($file); if (!$archiver) { throw new Exception(t('Cannot extract %file, not