You are here

function hosting_migrate_hosting_tasks in Hosting 6.2

Same name and namespace in other branches
  1. 5 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()

Implementation of hook_hosting_tasks().

File

migrate/hosting_migrate.module, line 46

Code

function hosting_migrate_hosting_tasks() {
  $tasks = array();
  $tasks['site']['migrate'] = array(
    'title' => t('Migrate'),
    'description' => t('Move the site to a new platform.'),
    'dialog' => TRUE,
  );
  $tasks['platform']['migrate'] = array(
    'title' => t('Migrate'),
    'description' => t('Migrate sites to a new platform.'),
    'page arguments' => array(
      'hosting_migrate_platform',
      1,
    ),
    'dialog' => TRUE,
  );
  return $tasks;
}