I'm not sure what your function is for.
You should really be able to simply put the main code within the
action_init_atom() hook.
On May 2, 2009, at 12:58 PM, davidyeiser wrote:
>
> I'm throwing in the towel. I've tried for hours on this and I can't
> figure it out. In my defense, I would never claim to be a programmer!
>
> So what I need to do is insert these two lines at the top of my Atom
> feed:
> define('BIRDFEED', 'Articles');
> include($_SERVER['DOCUMENT_ROOT'].'/feeder/index.php');
>
> I've created a plugin to try to do this via the $before_action, but to
> no avail. The code for this is shown below. Any help would be greatly
> appreciated. Thanks!
>
> <?php
>
> class MintBirdFeeder extends Plugin
> {
> function info()
> {
> return array(
> 'name' => 'Mint Bird Feeder',
> 'version' => '0.1',
> 'url' => 'http://designintellection.com/',
> 'author' => 'David Yeiser',
> 'authorurl' => 'http://designintellection.com/',
> 'license' => 'Apache License 2.0',
> 'description' => 'This plugin places the Bird Feeder
> Pepper call
> into the Atom feed.',
> );
> }
>
> public function action_init_atom()
> {
> function di_mint_birdfeeder_header()
> {
> define('BIRDFEED', 'Articles');
> include($_SERVER['DOCUMENT_ROOT'].'/feeder/index.php');
> }
>
>
> Plugins::act('before_act_init_atom','di_mint_birdfeeder_header');
> }
> }
>
> ?>
>
> >
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/habari-users
-~----------~----~----~----~------~----~------~--~---