You are here

function hosting_site_post_hosting_verify_task in Hosting 5

Same name and namespace in other branches
  1. 6.2 site/hosting_site.drush.inc \hosting_site_post_hosting_verify_task()
  2. 7.4 site/hosting_site.drush.inc \hosting_site_post_hosting_verify_task()
  3. 7.3 site/hosting_site.drush.inc \hosting_site_post_hosting_verify_task()

File

site/hosting_site.drush.inc, line 118

Code

function hosting_site_post_hosting_verify_task($task, $data) {
  if ($task->ref->type == 'site') {
    $task->ref->verified = mktime();
    $task->ref->no_verify = TRUE;
    node_save($task->ref);
    $context = $data['context'];
    $packages = $context['packages'];
    hosting_package_sync($packages);
    hosting_package_instance_sync($task->ref->nid, $packages);
  }
}