You are here

function tweet_feed_node_presave in Tweet Feed 7.3

Same name and namespace in other branches
  1. 7.2 tweet_feed.module \tweet_feed_node_presave()

Implements hook_node_presave().

Done to preserve our tweeted time as our last updated time. Note we're only doing this for the tweet feed content type

File

./tweet_feed.module, line 1221

Code

function tweet_feed_node_presave($node) {
  if ($node->type == 'twitter_tweet_feed') {
    $node->changed = $node->created;
  }
}