function hosting_platform_hosting_tasks in Hosting 5
Same name and namespace in other branches
- 6.2 platform/hosting_platform.module \hosting_platform_hosting_tasks()
- 7.4 platform/hosting_platform.module \hosting_platform_hosting_tasks()
- 7.3 platform/hosting_platform.module \hosting_platform_hosting_tasks()
Implementation of hook_hosting_tasks
File
- platform/
hosting_platform.module, line 21 - Platform node type definition
Code
function hosting_platform_hosting_tasks($node) {
$options = array();
if ($node->type == 'platform' & !hosting_task_outstanding($node->nid, 'verify')) {
$options['verify'] = array(
'title' => t('Verify'),
'description' => t('Verify that the platform is correctly installed and working.'),
'weight' => 10,
);
}
return $options;
}