You are here

function feeds_node_update in Feeds 7.2

Same name and namespace in other branches
  1. 8.2 feeds.module \feeds_node_update()
  2. 7 feeds.module \feeds_node_update()

Implements hook_node_update().

Related topics

File

./feeds.module, line 783
Feeds - basic API functions and hook implementations.

Code

function feeds_node_update($node) {

  // Source attached to node.
  if (isset($node->feeds) && ($importer_id = feeds_get_importer_id($node->type))) {
    $source = feeds_source($importer_id, $node->nid);
    $source
      ->addConfig($node->feeds);
    $source
      ->save();
    $source
      ->ensureSchedule();
  }
}