You are here

function hook_privatemsg_view_alter in Privatemsg 7.2

Same name and namespace in other branches
  1. 7 privatemsg.api.php \hook_privatemsg_view_alter()

Add content to the view thread page.

Parameters

$content: Render-able array, contains the thread object in #thread.

Related topics

1 function implements hook_privatemsg_view_alter()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

privatemsg_filter_privatemsg_view_alter in privatemsg_filter/privatemsg_filter.module
Implements hook_privatemsg_view_alter().
1 invocation of hook_privatemsg_view_alter()
privatemsg_view in ./privatemsg.pages.inc
Menu callback for viewing a thread.

File

./privatemsg.api.php, line 344
Privatemsg API Documentation

Code

function hook_privatemsg_view_alter($content) {
  if (privatemsg_user_access('tag private messages')) {
    $content['tags'] = privatemsg_filter_show_tags($content['#thread']['thread_id'], !empty($_GET['show_tags_form']));
  }
}