function hosting_site_post_hosting_verify_task in Hosting 7.3
Same name and namespace in other branches
- 5 site/hosting_site.drush.inc \hosting_site_post_hosting_verify_task()
- 6.2 site/hosting_site.drush.inc \hosting_site_post_hosting_verify_task()
- 7.4 site/hosting_site.drush.inc \hosting_site_post_hosting_verify_task()
Implements hook_post_hosting_verify_task().
File
- site/
hosting_site.drush.inc, line 246 - Drush hooks for the Hosting site module.
Code
function hosting_site_post_hosting_verify_task($task, $data) {
if ($task->ref->type == 'site') {
$task->ref->verified = REQUEST_TIME;
$task->ref->no_verify = TRUE;
$task->ref->db_name = $data['self']['db_name'];
if ($data['context']['cron_key']) {
$task->ref->cron_key = $data['context']['cron_key'];
}
node_save($task->ref);
$context = $data['context'];
$packages = $context['packages'];
hosting_package_sync($packages);
hosting_package_instance_sync($task->ref->nid, $task->ref->type, $packages);
}
}