You are here

function _prod_check_get_project_name in Production check & Production monitor 7

Same name and namespace in other branches
  1. 6 includes/prod_check.update.inc \_prod_check_get_project_name()

Taken from Core: modules/update/update.compare.inc, line 238

Given a $file object (as returned by system_get_files_database()), figure out what project it belongs to.

See also

system_get_files_database()

1 call to _prod_check_get_project_name()
_prod_check_process_info_list in includes/prod_check.update.inc
Taken from Core: modules/update/update.compare.inc, line 81

File

includes/prod_check.update.inc, line 194

Code

function _prod_check_get_project_name($file) {
  $project_name = '';
  if (isset($file->info['project'])) {
    $project_name = $file->info['project'];
  }
  elseif (isset($file->info['package']) && strpos($file->info['package'], 'Core') === 0) {
    $project_name = 'drupal';
  }
  return $project_name;
}