You are here

function update_status_get_project in Update Status 5.2

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

See also

system_get_files_database()

1 call to update_status_get_project()
_update_status_process_info_list in ./update_status.module

File

./update_status.module, line 820

Code

function update_status_get_project($module) {
  $project = '';
  if (isset($module->info['project'])) {
    $project = $module->info['project'];
  }
  elseif (isset($module->info['package']) && strpos($module->info['package'], 'Core -') !== FALSE) {
    $project = 'drupal';
  }
  return $project;
}