We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Discrepancy in Hooks documentation??

Development and Programming

Jeff Ricks's avatar
Jeff Ricks
99 posts
16 years ago
Jeff Ricks's avatar Jeff Ricks

I’ve discovered what looks to me like a discrepancy between the EE hooks documentation and the actual code.

The documentation says the hook for ‘forum_submit_post_end’ looks like this:

if (isset($EXT->extensions['forum_submit_post_end']))
{
 $edata = $EXT->call_extension('forum_submit_post_end', $this, $data);
 if ($EXT->end_script === TRUE) return $edata;
}

But the actual code for that hook in mod.forum.core.php (version 2.1.1) looks like this. Notice the ‘if’ statement is different:

if ($EXT->active_hook('forum_submit_post_end') === TRUE)
{
    $edata = $EXT->universal_call_extension('forum_submit_post_end', $this, $data);
    if ($EXT->end_script === TRUE) return $edata;
}

I’m wondering if the discrepancy is the reason my call to that hook isn’t working, whereas my calls to other hooks are working just fine. Any help is appreciated.

(By the way, I first posted this in the wrong forum – the Modules: Technical Assistance forum. After I realized my mistake, I posted it here.)

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.