You are here

public function RestWSBaseFormat::deleteResource in RESTful Web Services 7

Same name and namespace in other branches
  1. 7.2 restws.formats.inc \RestWSBaseFormat::deleteResource()

Deletes a resource.

Overrides RestWSFormatInterface::deleteResource

File

./restws.formats.inc, line 122
RESTful web services module formats.

Class

RestWSBaseFormat
A base for all simple formats that are just serializing/unserializing an array of property values.

Code

public function deleteResource($resourceController, $id) {
  $resourceController
    ->delete($id);

  // Return an empty representation.
  return $this
    ->serialize(array());
}