You are here

function theme_privatemsg_new_msg_header in Privatemsg 5.3

Same name and namespace in other branches
  1. 5 privatemsg.module \theme_privatemsg_new_msg_header()

File

./privatemsg.module, line 2305

Code

function theme_privatemsg_new_msg_header($form) {
  $rows = array();
  $title = $form['recipient']['#title'] . ':';
  unset($form['recipient']['#title']);
  $rows[] = array(
    'data' => array(
      array(
        'data' => $title,
        'class' => 'title-cell',
      ),
      drupal_render($form['recipient']),
    ),
    'valign' => 'top',
  );
  $title = $form['subject']['#title'] . ':';
  unset($form['subject']['#title']);
  $rows[] = array(
    array(
      'data' => $title,
      'class' => 'title-cell',
    ),
    drupal_render($form['subject']),
  );
  return theme('table', NULL, $rows, array(
    'class' => 'pm-view-table',
  ));
}