function _hosting_migrate_version_display in Hostmaster (Aegir) 6
1 call to _hosting_migrate_version_display()
- theme_hosting_migrate_comparison in modules/
hosting/ migrate/ hosting_migrate.module - Render a list of compared packages for migration.
File
- modules/
hosting/ 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,
);
}