function hook_privatemsg_view_messages_alter in Privatemsg 6.2
Add content to the view thread page.
Parameters
$content: Render-able array of the content of the page.
$thread: Thread object which contains the messages and other information about the thread.
Related topics
1 function implements hook_privatemsg_view_messages_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_messages_alter in privatemsg_filter/
privatemsg_filter.module - Hook into the view messages page to add a form for tagging purposes.
1 invocation of hook_privatemsg_view_messages_alter()
- privatemsg_view in ./
privatemsg.pages.inc - Menu callback for viewing a thread.
File
- ./
privatemsg.api.php, line 437 - Privatemsg API Documentation
Code
function hook_privatemsg_view_messages_alter($content, $thread) {
if (privatemsg_user_access('tag private messages')) {
$content['tags'] = privatemsg_filter_show_tags($thread['thread_id'], !empty($_GET['show_tags_form']));
}
}