You are here

function privatemsg_delete_form in Privatemsg 5.3

Same name and namespace in other branches
  1. 5 privatemsg.module \privatemsg_delete_form()
1 string reference to 'privatemsg_delete_form'
privatemsg_delete in ./privatemsg.module

File

./privatemsg.module, line 2013

Code

function privatemsg_delete_form($mid) {
  $subject = db_result(db_query("SELECT subject FROM {privatemsg} WHERE id = %d", $mid));
  $message = t('Are you sure you wish to delete the message %subject?', array(
    '%subject' => $subject,
  ));
  $form = confirm_form(array(), t('Delete message?'), 'privatemsg/view/' . $mid, $message, t('Delete'), t('Cancel'), 'delete');
  return $form;
}