You are here

function _hosting_migrate_version_display in Hosting 7.3

Same name and namespace in other branches
  1. 6.2 migrate/hosting_migrate.module \_hosting_migrate_version_display()
  2. 7.4 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 253

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' => array(
      'hosting-package-' . $status,
    ),
    'data' => $display,
  );
}