You are here

function _hosting_migrate_version_display in Hosting 6.2

Same name and namespace in other branches
  1. 7.4 migrate/hosting_migrate.module \_hosting_migrate_version_display()
  2. 7.3 migrate/hosting_migrate.module \_hosting_migrate_version_display()
1 call to _hosting_migrate_version_display()
theme_hosting_migrate_comparison in migrate/hosting_migrate.module
Render a list of compared packages for migration.

File

migrate/hosting_migrate.module, line 238

Code

function _hosting_migrate_version_display($version, $schema = null, $status = null) {
  $status = !is_null($status) ? $status : 'same';
  if (is_null($version)) {
    $display = 'missing';
  }
  else {
    $display = $version == 0 ? t('Unknown') : $version;
  }
  if ($schema) {
    $display .= " (" . $schema . ")";
  }
  return array(
    'class' => 'hosting-package-' . $status,
    'data' => $display,
  );
}