Extension Hooks

forum_threads_template

Hook Added in Version:

1.4.0

Hook File Location:

mod.forum_core.php

Hook Description:

Allows modifying of the Threads display template before it is processed

Hook Parameters

  • $this - The currently instantiated Forum Core object
  • $str - The topics thread template
  • $tquery - The data for this thread

Hook Returns Data?

Yes

Appearance of Hook in the Code

if (isset($EXT->extensions['forum_threads_template']))
{
 $str = $EXT->call_extension('forum_threads_template', $this, $str, $tquery);
 if ($EXT->end_script === TRUE) return $str;
}