You are here

function hosting_task_hosting_feature in Hosting 7.3

Same name and namespace in other branches
  1. 6.2 task/hosting.feature.task.inc \hosting_task_hosting_feature()
  2. 7.4 task/hosting.feature.task.inc \hosting_task_hosting_feature()

Implements hook_hosting_feature().

File

task/hosting.feature.task.inc, line 10
Expose the task feature to hostmaster.

Code

function hosting_task_hosting_feature() {
  $features['task'] = array(
    'title' => t('Tasks'),
    'description' => t('API to provide support for tasks.'),
    'status' => HOSTING_FEATURE_REQUIRED,
    'module' => 'hosting_task',
    'node' => 'task',
    'group' => 'required',
    'role_permissions' => array(
      'aegir platform manager' => array(
        'administer tasks',
        'create lock task',
        'create unlock task',
        'create verify task',
        'access task logs',
        'cancel own tasks',
        'view own tasks',
        'retry failed tasks',
        'view task',
      ),
      'aegir client' => array(
        'create backup task',
        'create delete task',
        'create disable task',
        'create enable task',
        'create restore task',
        'create verify task',
        'create login-reset task',
        'access task logs',
        'view own tasks',
        'view task',
        'cancel own tasks',
      ),
    ),
  );
  return $features;
}