You are here

function hosting_platform_hosting_tasks in Hosting 5

Same name and namespace in other branches
  1. 6.2 platform/hosting_platform.module \hosting_platform_hosting_tasks()
  2. 7.4 platform/hosting_platform.module \hosting_platform_hosting_tasks()
  3. 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;
}