function feeds_entity_delete

×

Error message

User warning: The following module is missing from the file system: theme/theme. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1156 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
cis7 feeds.module feeds_entity_delete($entity, $type)
cle7 feeds.module feeds_entity_delete($entity, $type)
elmsmedia7 feeds.module feeds_entity_delete($entity, $type)
icor7 feeds.module feeds_entity_delete($entity, $type)
meedjum_blog7 feeds.module feeds_entity_delete($entity, $type)
mooc7 feeds.module feeds_entity_delete($entity, $type)

Implements hook_entity_delete().

Related topics

File

sites/all/modules/ulmus/feeds/feeds.module, line 527
Feeds - basic API functions and hook implementations.

Code

function feeds_entity_delete($entity, $type) {
  list($id) = entity_extract_ids($type, $entity);

  // Delete any imported items produced by the source.
  db_delete('feeds_item')->condition('entity_type', $type)->condition('entity_id', $id)->execute();
}