You are here

function oa_update_get_profile in Open Atrium Core 7.2

Build the Project array needed by Update module for profile_name

2 calls to oa_update_get_profile()
oa_update_admin_form in modules/oa_update/oa_update.module
Update distro help page..
oa_update_update_projects_alter in modules/oa_update/oa_update.module
Implements hook_update_projects_alter().

File

modules/oa_update/oa_update.module, line 137
Code for the oa_update module

Code

function oa_update_get_profile($profile_name) {

  // add the profile back into the module list to fetch update status for
  $uri = 'profiles/' . $profile_name . '/' . $profile_name . '.profile';
  $filename = dirname($uri) . '/' . $profile_name . '.info';
  $info = drupal_parse_info_file($filename);
  $info['project'] = $profile_name;
  $info['hidden'] = FALSE;
  if (!isset($info['_info_file_ctime'])) {
    $info['_info_file_ctime'] = filectime($filename);
  }
  if (!isset($info['datestamp'])) {
    $info['datestamp'] = 0;
  }
  $profile = array(
    'name' => $profile_name,
    'info' => $info,
    'project_type' => 'module',
    'project_status' => TRUE,
    'includes' => array(
      $profile_name => $info['name'],
    ),
  );
  return $profile;
}