You are here

function phptemplate_privatemsg_list_field__attachment in Privatemsg 6.2

Default theme pattern function to display attachment symbol.

See also

theme_privatemsg_list_field()

File

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

Code

function phptemplate_privatemsg_list_field__attachment($thread) {
  if (isset($thread['attachment'])) {
    $description = format_plural($thread['attachment'], t('Thread contains @count attachment.'), t('Thread contains @count attachments.'));
    $img = theme('image', drupal_get_path('module', 'privatemsg_attachments') . '/icon_attachment.gif', $description, $description);
    return $img;
  }
}