You are here

function hosting_platform_post_hosting_lock_task in Hosting 7.4

Same name and namespace in other branches
  1. 6.2 platform/hosting_platform.drush.inc \hosting_platform_post_hosting_lock_task()
  2. 7.3 platform/hosting_platform.drush.inc \hosting_platform_post_hosting_lock_task()

@todo Please document this function.

See also

http://drupal.org/node/1354

File

platform/hosting_platform.drush.inc, line 183
Implement drush hooks for the Platforms module.

Code

function hosting_platform_post_hosting_lock_task($task, $data) {
  if ($task->ref->type != 'platform') {
    return;
  }
  $task->ref->platform_status = HOSTING_PLATFORM_LOCKED;
  $task->ref->no_verify = TRUE;
  node_save($task->ref);
}