function entity_delete

cis7 entity.module entity_delete($entity_type, $id)
cle7 entity.module entity_delete($entity_type, $id)
elmsmedia7 entity.module entity_delete($entity_type, $id)
icor7 entity.module entity_delete($entity_type, $id)
meedjum_blog7 entity.module entity_delete($entity_type, $id)
mooc7 entity.module entity_delete($entity_type, $id)

Permanently delete the given entity.

In case of failures, an exception is thrown.

Parameters

$entity_type: The type of the entity.

$id: The uniform identifier of the entity to delete.

Return value

FALSE, if there were no information how to delete the entity.

See also

entity_type_supports()

9 calls to entity_delete()
EntityDefaultFeaturesController::revert in sites/all/modules/ulmus/entity/entity.features.inc
Generates the result for hook_features_revert().
EntityDefaultUIController::applyOperation in sites/all/modules/ulmus/entity/includes/entity.ui.inc
Applies an operation to the given entity.
EntityDrupalWrapper::delete in sites/all/modules/ulmus/entity/includes/entity.wrapper.inc
Permanently delete the wrapped entity.
entity_uuid_delete in sites/all/modules/ulmus/uuid/uuid.entity.inc
Permanently delete the given entity by its UUID.
entity_watchdog_watchdog_delete in sites/all/modules/elmsln_contrib/entity_watchdog/entity_watchdog.module
Delete single watchdog entry.

... See full list

14 string references to 'entity_delete'
comment_delete_multiple in modules/comment/comment.module
Delete comments and all their replies.
entity_test_entity_delete in sites/all/modules/ulmus/entity/tests/entity_test.module
Implements hook_entity_delete().
file_delete in includes/file.inc
Deletes a file and its database record.
file_delete_multiple in sites/all/modules/ulmus/file_entity/file_entity.file_api.inc
Delete multiple files.
LTIToolProviderConsumerEntityController::deleteMultiple in sites/all/modules/ulmus/lti_tool_provider/LTIToolProviderConsumerEntityController.class.php
Delete multiple consumers.

... See full list

File

sites/all/modules/ulmus/entity/entity.module, line 311
Module file for the entity API.

Code

function entity_delete($entity_type, $id) {
  return entity_delete_multiple($entity_type, array($id));
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.