You are here

function privatemsg_privatemsg_header_info in Privatemsg 6.2

Same name and namespace in other branches
  1. 7.2 privatemsg.module \privatemsg_privatemsg_header_info()

Implements hook_privatemsg_header_info().

File

./privatemsg.module, line 2934
Allows users to send private messages to other users.

Code

function privatemsg_privatemsg_header_info() {
  return array(
    'subject' => array(
      'data' => t('Subject'),
      'field' => 'subject',
      'class' => 'privatemsg-header-subject',
      '#enabled' => TRUE,
      '#locked' => TRUE,
      '#weight' => -20,
    ),
    'count' => array(
      'data' => t('Messages'),
      'class' => 'privatemsg-header-count',
      '#weight' => -5,
    ),
    'participants' => array(
      'data' => t('Participants'),
      'class' => 'privatemsg-header-participants',
      '#weight' => -15,
      '#enabled' => TRUE,
    ),
    'last_updated' => array(
      'data' => t('Last Updated'),
      'field' => 'last_updated',
      'sort' => 'desc',
      'class' => 'privatemsg-header-lastupdated',
      '#enabled' => TRUE,
      '#locked' => TRUE,
      '#weight' => 20,
    ),
    'thread_started' => array(
      'data' => t('Started'),
      'field' => 'thread_started',
      'class' => 'privatemsg-header-threadstarted',
      '#weight' => -10,
    ),
  );
}