You are here

function asset_feeds_asset_update in Asset 7

Implements hook_asset_update().

1 call to asset_feeds_asset_update()
asset_feeds_asset_insert in modules/asset_feeds/asset_feeds.module
Implements hook_asset_insert().

File

modules/asset_feeds/asset_feeds.module, line 56
Feeds module integration.

Code

function asset_feeds_asset_update($asset) {

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