backend_comments

Adds custom content to common comment listing page in backend.

Blog

Input (passed by reference)

$params array Last comments data array. Number of last comments is defined by app's configuration parameter 'comments_per_page'.
$params[%id%]['id'] int Comment ID.
$params[%id%]['post'] int Data array of post to which a comment was added.
$params[%id%]['user'] int Comment author data array.
… your plugin code …

Output

{$backend_comments.%plugin_id%.toolbar}
Custom HTML code to be displayed at the page top.
Blog

Plugin code example

PHP

public function backendComments($params)
{
    waLog::log(print_r($params, true), 'blog/myplugin/backend-comments.log');
    return array(
        'toolbar' => 'Any HTML code for comments-viewing page in backend.',
    );
}