You are here

function messaging_simple_view_form in Messaging 7

Display single message

1 string reference to 'messaging_simple_view_form'
messaging_simple_menu in messaging_simple/messaging_simple.module
Implementation of hook_menu().

File

messaging_simple/messaging_simple.module, line 130
Simple messaging using html page. Messaging method plug-in

Code

function messaging_simple_view_form($form, &$form_state, $message) {
  $form['message'] = array(
    '#type' => 'value',
    '#value' => $message,
  );
  $form['subject'] = array(
    '#type' => 'item',
    '#title' => t('Subject'),
    '#markup' => check_plain($message->subject),
  );
  $form['body'] = array(
    '#type' => 'item',
    '#title' => t('Content'),
    '#markup' => check_markup($message->body),
  );
  $form['delete'] = array(
    '#type' => 'submit',
    '#value' => t('Delete'),
  );
  return $form;
}