public function RestWSBaseFormat::deleteResource in RESTful Web Services 7.2
Same name and namespace in other branches
- 7 restws.formats.inc \RestWSBaseFormat::deleteResource()
Deletes a resource.
Overrides RestWSFormatInterface::deleteResource
File
- ./
restws.formats.inc, line 148 - 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 by default.
$value = array();
$function = __FUNCTION__;
drupal_alter('restws_response', $value, $function, $this->formatName, $resourceController);
return $this
->serialize($value);
}