function feeds_node_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_node_delete($node)
cle7 feeds.module feeds_node_delete($node)
elmsmedia7 feeds.module feeds_node_delete($node)
icor7 feeds.module feeds_node_delete($node)
meedjum_blog7 feeds.module feeds_node_delete($node)
mooc7 feeds.module feeds_node_delete($node)

Implements hook_node_delete().

Related topics

File

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

Code

function feeds_node_delete($node) {
  // Source attached to node.
  // Make sure we don't leave any orphans behind: Do not use
  // feeds_get_importer_id() to determine importer id as the importer may have
  // been deleted.
  if ($importer_id = db_query("SELECT id FROM {feeds_source} WHERE feed_nid = :nid", array(':nid' => $node->nid))->fetchField()) {
    feeds_source($importer_id, $node->nid)->delete();
  }
}