You are here

function privatemsg_unblock_user_form in Privatemsg 5

Same name and namespace in other branches
  1. 5.3 privatemsg.module \privatemsg_unblock_user_form()
1 string reference to 'privatemsg_unblock_user_form'
privatemsg_menu in ./privatemsg.module
Implementation of hook_menu().

File

./privatemsg.module, line 511

Code

function privatemsg_unblock_user_form($account) {
  $form = array();
  $form['uid'] = array(
    '#type' => 'value',
    '#value' => $account->uid,
  );
  return confirm_form($form, t('Are you sure you want to allow !user to send you messages?', array(
    '!user' => $account->name,
  )), 'user/' . $account->uid, '');
}