function hosting_site_post_hosting_install_task in Hosting 5
Same name and namespace in other branches
- 6.2 site/hosting_site.drush.inc \hosting_site_post_hosting_install_task()
- 7.4 site/hosting_site.drush.inc \hosting_site_post_hosting_install_task()
- 7.3 site/hosting_site.drush.inc \hosting_site_post_hosting_install_task()
implementation of the hosting_post_install hook
File
- site/
hosting_site.drush.inc, line 27
Code
function hosting_site_post_hosting_install_task($task, $data) {
if ($task->ref->type == 'site') {
$context = $data['context'];
$packages = $context['packages'];
hosting_package_sync($packages);
hosting_package_instance_sync($task->ref->nid, $packages);
$task->ref->site_status = HOSTING_SITE_ENABLED;
$task->ref->no_verify = TRUE;
$task->ref->verified = mktime();
node_save($task->ref);
}
}