You are here

function _hacked_extract_archive in Hacked! 7.3

Extract archive.

1 call to _hacked_extract_archive()
_hacked_check_project in ./hacked.helpers.inc
Check core, module or theme.

File

./hacked.helpers.inc, line 112
Contain list of helpers for the module.

Code

function _hacked_extract_archive($filepath) {
  $archiver = archiver_get_archiver($filepath);
  if (!$archiver) {
    return FALSE;
  }
  $archiver
    ->extract(_hacked_get_temp_dir());
  return $archiver;
}