From 4412b877d02c16c033a28fd2b9d9fafa9fd16214 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 24 Dec 2012 14:13:03 +0400 Subject: implement HOOK_FEED_PARSED, add example plugin (refs #424) --- plugins/example_feed/example_feed.php | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 plugins/example_feed/example_feed.php (limited to 'plugins/example_feed/example_feed.php') diff --git a/plugins/example_feed/example_feed.php b/plugins/example_feed/example_feed.php new file mode 100644 index 000000000..26f392bd7 --- /dev/null +++ b/plugins/example_feed/example_feed.php @@ -0,0 +1,22 @@ +link = $host->get_link(); + $this->host = $host; + + $host->add_hook($host::HOOK_FEED_PARSED, $this); + } + + function hook_feed_parsed($feed) { + _debug("I'm a little feed short and stout, here's my title: " . $feed->get_title()); + _debug("... here's my link element: " . $feed->get_link()); + } +} +?> -- cgit v1.2.3-54-g00ecf