diff --git a/modules/hosting/platform/hosting_platform.drush.inc b/modules/hosting/platform/hosting_platform.drush.inc index e1daf01..52f6a38 100644 --- a/modules/hosting/platform/hosting_platform.drush.inc +++ b/modules/hosting/platform/hosting_platform.drush.inc @@ -30,6 +30,18 @@ function hosting_platform_drush_context_import($context, &$node) { } /** + * Implementation of hook_hosting_verify_rollback() + */ +function hosting_platform_hosting_verify_task_rollback($task, $data) { + if ($task->ref->type == 'platform') { + if ($task->ref->platform_status != HOSTING_PLATFORM_LOCKED) { + drush_log(dt('The platform could not be verified, so has been disabled to prevent sites being created on it.'), 'error'); + hosting_platform_post_hosting_lock_task($task, $data); + } + } +} + +/** * Implementation hook_post_verify(). * * Sets the platform verified timestamp, to discren when it was verified.