function tweet_feed_node_delete in Tweet Feed 7.3
Same name and namespace in other branches
- 7.2 tweet_feed.module \tweet_feed_node_delete()
Implements hook_node_delete().
Remove hashes when tweets or profiles deleted
File
- ./
tweet_feed.module, line 1198
Code
function tweet_feed_node_delete($node) {
switch ($node->type) {
case 'twitter_tweet_feed':
db_delete('tweet_hashes')
->condition('nid', $node->nid)
->execute();
break;
case 'twitter_user_profile':
db_delete('tweet_user_hashes')
->condition('nid', $node->nid)
->execute();
break;
default:
break;
}
}