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.)
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.