public function EntityAPIControllerRevisionableInterface::deleteRevision in Entity API 7
Delete an entity revision.
Note that the default revision of an entity cannot be deleted.
Parameters
$revision_id: The ID of the revision to delete.
Return value
bool TRUE if the entity revision could be deleted, FALSE otherwise.
1 method overrides EntityAPIControllerRevisionableInterface::deleteRevision()
- EntityAPIController::deleteRevision in includes/
entity.controller.inc - Implements EntityAPIControllerRevisionableInterface::deleteRevision().
File
- includes/
entity.controller.inc, line 143 - Provides a controller building upon the core controller but providing more features like full CRUD functionality.
Class
- EntityAPIControllerRevisionableInterface
- Interface for EntityControllers of entities that support revisions.
Code
public function deleteRevision($revision_id);