Rationale: This hook will allow for people to modify the topicrow before it is sent to the $template->assign_block_vars.
Input arguments: &$topicrow (single parameter passed by reference)
Output format: void
Output semantics: $topicrow is passed by reference and acts as the Output.
Infrastructure: In viewforum.php, a new array should be created, $topicrow, that contains the full array to be sent to $template->assign_block_vars. This array will be passed by reference to the hook function before send to the template.
Example: (just pseudo code)
- Code: Select all
// Hook function to rewrite pretty urls
$topicrow['U_VIEW_TOPIC'] = $phpbb_root_path . url_slug($topicrow['TOPIC_TITLE']) . '-t' .$topicrow['TOPIC_ID'] . '.html';