You are here

function privatemsg_attachments_privatemsg_message_view_alter in Privatemsg 6.2

File

privatemsg_attachments/privatemsg_attachments.module, line 274
Allows users to add attachments to messages

Code

function privatemsg_attachments_privatemsg_message_view_alter(&$vars) {
  if (!empty($vars['message']['files']) && user_access('view private message attachments')) {
    $vars['message_body'] .= theme('upload_attachments', $vars['message']['files']);
  }
}