You are here

function hosting_migrate_hosting_tasks in Hosting 5

Same name and namespace in other branches
  1. 6.2 migrate/hosting_migrate.module \hosting_migrate_hosting_tasks()
  2. 7.4 migrate/hosting_migrate.module \hosting_migrate_hosting_tasks()
  3. 7.3 migrate/hosting_migrate.module \hosting_migrate_hosting_tasks()

File

migrate/hosting_migrate.module, line 3

Code

function hosting_migrate_hosting_tasks($node) {
  $options = array();
  if ($node->type == 'site') {
    if ($node->site_status == HOSTING_SITE_ENABLED) {
      $options['migrate'] = array(
        'title' => t('Migrate'),
        'description' => t('Move the site to a new platform.'),
        'weight' => 7,
      );
    }
  }
  return $options;
}