Activity Feed Callbacks

The Activity Feeds application handles the generation of various system activity feeds, based on the contents of the system activity log. The application uses callbacks to dispatch the creation of the feed. The callbacks that are used include:

  • ActivityFeed
  • ActivityFeed.blog
  • ActivityFeed.comment
  • ActivityFeed.debug
  • ActivityFeed.entry
  • ActivityFeed.page
  • ActivityFeed.ping
  • ActivityFeed.system

Input Parameters

  • $cb - a reference to the MT::Callback object
  • $app - a reference to the MT::App::ActivityFeeds object processing this request.
  • $view - a string referring to the type of activity feed log entry is being produced. Acceptable values are:
    • system
    • comment
    • blog
    • ping
    • debug
    • entry
    • page
  • $feed - a scalar reference to a string which corresponds to the contents of the generated feed. Upon return, this value is printed out. The content should be an Atom-based feed.

Example Handler

sub handler {
    my ($cb,$app,$view,$feed) = @_;
    # do your thing
    $$feed = "foo";
}
This page was last updated on 2008-10-01, 16:59.

Leave a note

Have a question? Please use the MT Forums. Notes submitted on documentation should pertain to tips & hints regarding documentation. Your note may be removed once its contents have been integrated into the body of the page.