You are here

function update_status_make_nice_version in Update Status 5

Make a CVS version nicer if we know how. Code by webchick.

1 call to update_status_make_nice_version()
update_status_get_projects in ./update_status.module
Fetch an array of installed and enabled projects.

File

./update_status.module, line 240

Code

function update_status_make_nice_version($version, &$check) {
  if (!$version) {
    $version = t('Unknown');
  }
  elseif (preg_match('/\\$' . 'Name: (.*?)\\$/', $version, $matches)) {
    $version = trim($matches[1]);
    if (!$version) {
      $version = 'HEAD';
    }
  }

  // TODO: sanitize this further but I can't figure out where dww's code to
  // do that lives.
  $check = FALSE;
  return $version;
}