You are here

function hostingService_example_basic::delete in Hostmaster (Aegir) 6

Delete a record from the database, based on server node.

Overrides hostingService::delete

File

modules/hosting/example/hosting_example.service.inc, line 183
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

function delete() {

  // REMEMBER TO CALL THE PARENT!
  parent::delete();
  variable_del('hosting_example_field_' . $this->server->nid);
}