Page 1 of 1

Hook descriptions?

Posted: 05 Apr 2013, 12:50
by mbirth
Is there any overview of when which hook is run?

I'm about to write a plugin to replace the snippet in the RSS by content from the linked page. So far I've seen other plugins doing a similar thing by using HOOK_ARTICLE_FILTER, HOOK_SANITIZE or HOOK_RENDER_ARTICLE_CDM. From what I've seen in the code, SANITIZE and RENDER_ARTICLE_CDM are run too late and won't modify the database contents. HOOK_FEED_FETCHED seems a little too early.

Should I use HOOK_FEED_PARSED or HOOK_ARTICLE_FILTER to modify an item's contents before it is sent to the database?

Re: Hook descriptions?

Posted: 05 Apr 2013, 13:13
by fox
See af_ plugins for an example (it's HOOK_ARTICLE_FILTER).

Re: Hook descriptions?

Posted: 09 Apr 2013, 18:15
by macfly
use the existing plugin embed_original