You are here

function hacked_hash_local in Hacked! 5

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

File

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

Code

function hacked_hash_local(&$project) {

  // Are there other types of project we should handle?
  if ($project['project_type'] == 'module' || $project['project_type'] == 'theme' || $project['project_type'] == 'core') {
    if ($dir = hacked_find_local_project_directory($project)) {
      $project['local_hashes'] = hacked_scan_directory_generate_hashes($dir, TRUE);
    }
    else {
      $project['local_hashes'] = array();
    }
  }
}