You are here

function feeds_node_update in Feeds 7

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

Implements hook_node_update().

Related topics

1 call to feeds_node_update()
feeds_node_insert in ./feeds.module
Implements hook_node_insert().

File

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

Code

function feeds_node_update($node) {
  _feeds_node_processor_node_update($node);
  if (!($importer_id = feeds_get_importer_id($node->type))) {
    return;
  }

  // Add configuration to feed source and save.
  $source = feeds_source($importer_id, $node->nid);
  $source
    ->addConfig($node->feeds);
  $source
    ->save();
}