You are here

function hacked_release_generate_hashes in Hacked! 5

Same name and namespace in other branches
  1. 6 hacked.module \hacked_release_generate_hashes()
1 call to hacked_release_generate_hashes()
hacked_release_generate_hashes_cached in ./hacked.module

File

./hacked.module, line 387
The Hacked! module, shows which project have been changed since download.

Code

function hacked_release_generate_hashes($type, $short_name, $version) {
  $dir = hacked_release_form_path_name($type, $short_name, $version);

  // More special handling for core:
  if ($type != 'core') {
    $module_dir = $dir . "/{$short_name}";
  }
  else {
    $module_dir = $dir . "/{$short_name}-{$version}";
  }

  // Scan the directory for files:
  $hashes = hacked_scan_directory_generate_hashes($module_dir);
  return $hashes;
}