Extension Hooks

view_comments_start

Hook Added in Version:

1.4.0

Hook File Location:

cp.publish.php

Hook Description:

Allows complete rewrite of View Comments/Trackbacks page.

Hook Parameters

  • $weblog_id - Weblog Id to show trackbacks from
  • $entry_id - Entry ID to show trackbacks from
  • $message - Submission return message to dispaly
  • $show_trackbacks - TRUE/FALSE
  • $id_array - Array of Comment IDS to display
  • $pagination_links - Edit section Comment search requires pagination, so we send those links with this variable
  • $rownum - Display different page from comment search

Hook Returns Data?

No

Appearance of Hook in the Code

$edata = $EXT->call_extension('view_comments_start', $weblog_id, $entry_id, $message, $show_trackbacks, $id_array, $pagination_links, $rownum);
if ($EXT->end_script === TRUE) return;