function privatemsg_block_user_form in Privatemsg 5
Same name and namespace in other branches
- 5.3 privatemsg.module \privatemsg_block_user_form()
1 string reference to 'privatemsg_block_user_form'
- privatemsg_menu in ./
privatemsg.module - Implementation of hook_menu().
File
- ./
privatemsg.module, line 500
Code
function privatemsg_block_user_form($account) {
$form = array();
$form['uid'] = array(
'#type' => 'value',
'#value' => $account->uid,
);
return confirm_form($form, t('Are you sure you want to block !user from sending you any more messages?', array(
'!user' => $account->name,
)), 'user/' . $account->uid, '');
}