You are here

public function hostingService_example_basic::context_options in Hostmaster (Aegir) 6

Pass values to the provision backend when we call provision-save.

By selecting this type we already pass the '--example_service_type=basic' option to the command, which will load the matching provisionService class in the backend.

This backend class will be responsible for receiving and reacting to the options passed here.

Overrides hostingService::context_options

Related topics

File

modules/hosting/example/hosting_example.service.inc, line 212
Example service implementation for the hosting front end.

Class

hostingService_example_basic
An implementation of the example service type, registered with hook_hosting_service.

Code

public function context_options($task_type, $ref_type, &$task) {

  // REMEMBER TO CALL THE PARENT!
  parent::context_options($task_type, $ref_type, $task);
  $task->context_options['example_field'] = $this->example_field;
}