You are here

function _hacked_check_project in Hacked! 7.3

Check core, module or theme.

1 call to _hacked_check_project()
_hacked_restore_project in ./hacked.helpers.inc
Restore core, module or theme.
1 string reference to '_hacked_check_project'
_hacked_report_batch in ./hacked.helpers.inc
Compute the report data for hacked.

File

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

Code

function _hacked_check_project($project) {
  $filepath = _hacked_download_archive($project['name'], $project['existing_version']);
  if (!$filepath) {
    watchdog('hacked', 'Can not download file' . $filepath);
    return FALSE;
  }
  $extract = _hacked_extract_archive($filepath);
  if (!$extract) {
    watchdog('hacked', 'Can extract archive' . $filepath);
    return FALSE;
  }

  // TODO compare project with files from archive
}