You are here

public function RestfulDataProviderVariable::remove in RESTful 7

Remove the item from the data source.

Parameters

mixed $id: The unique ID for the item.

Overrides RestfulBase::remove

File

plugins/restful/RestfulDataProviderVariable.php, line 242
Contains \RestfulDataProviderDbQuery

Class

RestfulDataProviderVariable
@file Contains \RestfulDataProviderDbQuery

Code

public function remove($name) {
  variable_del($name);
  $this
    ->setHttpHeaders('Status', 204);
}