You are here

function hosting_site_post_hosting_enable_task in Hosting 7.4

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

Implements hook_hosting_post_enable().

File

site/hosting_site.drush.inc, line 218
Drush hooks for the Hosting site module.

Code

function hosting_site_post_hosting_enable_task($task, $data) {
  if ($task->ref->type != 'site') {
    return;
  }
  $task->ref->site_status = HOSTING_SITE_ENABLED;
  $task->ref->no_verify = TRUE;
  node_save($task->ref);
}