Closed (outdated)
Project:
Feeds
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
27 Aug 2010 at 00:17 UTC
Updated:
16 Jun 2016 at 21:15 UTC
Jump to comment: Most recent
Comments
Comment #1
alex_b commentedCan we get quick guidance by the activity module maintainer? Feeds is invoking node prepare and insert hooks when creating a node, it is not invoking validate and submit hooks as it isn't submitting any forms. Where is activity module hooking into the node API?
Comment #2
Scott Reynolds commentedSorry guys been a very hectic week+
The solution is simple but really unfortunate. You will have to implement hook_activity_record_alter() in your own custom module.
This is ugly and we know it. It is resolved in the upcoming 7-3 branch. But that doesn't help you much right now.
Comment #3
bflora commentedHey guys,
I know it's not proper Drupal procedure, but can I drop that code snippet in comment #2 into any old enabled module file isntead of creating a new module just for that function?
Yes, it's hacky and I'm a bad person for even asking, but as far as quick fixes go, can I just drop that into any enabled module file and have it start doing it's thing? I'm not 100% familiar with how Drupal "reads" the code in its different active modules.
Comment #4
sirkitree commentedSure you could throw it into Feeds module, maybe even create a patch for them.
Comment #5
alex_b commentedLooks easy enough is that is all. NW for a proper patch.
Comment #6
YourBoyRoy-1 commentedI created a custom module using the code you supplied and it does appear to trigger Activity to record a message if there is only one feed item being inserted. However, if there are multiple items being inserted, only the the first feed item's insertion is triggering Activity to record a message. This happens both via the Import button on the Feed Parents node page and via cron (both auto and manual).
feedsactivity.module as follows
feedsactivity.info as follows
name = Feeds Activity
description = Custom module to fix activity with feeds as per http://drupal.org/node/894724
core = 6.x
package = "Feeds"
Thank you for your time
Comment #7
twistor commented