function privatemsg_privatemsg_header_info

7-2 privatemsg.module privatemsg_privatemsg_header_info()
6-2 privatemsg.module privatemsg_privatemsg_header_info()

Implements hook_privatemsg_header_info().

File

./privatemsg.module, line 3311
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' => array('privatemsg-header-subject'),
      '#enabled' => TRUE,
      '#locked' => TRUE,
      '#weight' => -20,
    ),
    'count' => array(
      'data' => t('Messages'),
      'class' => array('privatemsg-header-count'),
      '#weight' => -5,
    ),
    'participants' => array(
      'data' => t('Participants'),
      'class' => array('privatemsg-header-participants'),
      '#weight' => -15,
      '#enabled' => TRUE,
    ),
    'last_updated' => array(
      'data' => t('Last Updated'),
      'field' => 'last_updated',
      'sort' => 'desc',
      'class' => array('privatemsg-header-lastupdated'),
      '#enabled' => TRUE,
      '#locked' => TRUE,
      '#weight' => 20,
    ),
    'thread_started' => array(
      'data' => t('Started'),
      'field' => 'thread_started',
      'class' => array('privatemsg-header-threadstarted'),
      '#weight' => -10,
    ),
  );
}