function hosting_site_hosting_tasks in Hosting 7.4
Same name and namespace in other branches
- 5 site/hosting_site.module \hosting_site_hosting_tasks()
- 6.2 site/hosting_site.module \hosting_site_hosting_tasks()
- 7.3 site/hosting_site.module \hosting_site_hosting_tasks()
Implements hook_hosting_tasks().
File
- site/
hosting_site.module, line 298 - Contains hook implementations for Hosting site module.
Code
function hosting_site_hosting_tasks() {
$tasks = array();
$tasks['site']['backup'] = array(
'title' => t('Backup'),
'description' => t('Generate a backup of this site that can be restored to at any time'),
'dialog' => TRUE,
);
$tasks['site']['restore'] = array(
'title' => t('Restore'),
'description' => t('Restore this site to a previous backup. A new backup will be created before this is attempted.'),
'dialog' => TRUE,
);
$tasks['site']['verify'] = array(
'title' => t('Verify Site'),
'description' => t('Confirm that the site has been correctly installed and regenerate all configuration files to match the hosting front end.'),
'provision_save' => TRUE,
);
$tasks['site']['disable'] = array(
'title' => t('Disable'),
'description' => t('Disabling this site will stop it from being accessible.
It can be enabled again later.'),
'dialog' => TRUE,
);
$tasks['site']['enable'] = array(
'title' => t('Enable'),
'description' => t('Enabling this site will allow it to be accesible again.
It may be disabled again if needed.'),
);
$tasks['site']['delete'] = array(
'title' => t('Delete Site'),
'description' => t('Deleting this site will completely remove it from the hosting system,
but will keep the last backup available. This process can not be undone.
Are you really sure you want to delete this site?'),
'dialog' => TRUE,
);
$tasks['site']['login-reset'] = array(
'title' => t('Reset password'),
'description' => t('Generate a one-time login reset url for this site.'),
);
$tasks['site']['backup-delete'] = array(
'title' => t('Delete backups'),
'description' => t('Delete one or more backup files of a site.'),
'dialog' => TRUE,
);
$tasks['site']['install'] = array(
'title' => t('Install'),
'description' => t('Install a site'),
'provision_save' => TRUE,
'dialog' => TRUE,
);
$tasks['site']['import'] = array(
'title' => t('Import'),
'description' => t('Import an existing site into Aegir'),
'hidden' => TRUE,
);
$tasks['site']['deploy'] = array(
'title' => t('Deploy'),
'description' => t('Deploy new code and run pre- and post- deployment scripts.'),
'dialog' => TRUE,
'icon' => 'truck',
'provision_save' => TRUE,
);
return $tasks;
}