Page callback: Form constructor for the personal contact form.
$recipient: The account for which a personal contact form should be generated.
\Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException
contact_personal_form_submit()
function contact_personal_page($recipient) {
global $user;
// Check if flood control has been activated for sending e-mails.
if (!user_access('administer contact forms') && !user_access('administer users')) {
contact_flood_control();
}
drupal_set_title(t('Contact @username', array(
'@username' => user_format_name($recipient),
)), PASS_THROUGH);
$message = entity_create('contact_message', array(
'recipient' => $recipient,
'category' => 'personal',
));
return entity_get_form($message);
}