You are here

function hostingService_example_basic::delete in Hosting 7.3

Same name and namespace in other branches
  1. 6.2 example/hosting_example.service.inc \hostingService_example_basic::delete()
  2. 7.4 example/example_service/hosting_example.service.inc \hostingService_example_basic::delete()

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

Overrides hostingService::delete

File

example/example_service/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);
}