2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
$form['message']=array('#markup'=>t('<p>This is a one-time login for %user_name and will expire on %expiration_date.</p><p>Click on this button to log in to the site and change your password.</p>',array('%user_name'=>$account->name,'%expiration_date'=>format_date($timestamp+$timeout))));
if(!$account->login){
// No expiration for first time login.
$form['message']=array('#markup'=>t('<p>This is a one-time login for %user_name.</p><p>Click on this button to log in to the site and change your password.</p>',array('%user_name'=>$account->name)));
}
else{
$form['message']=array('#markup'=>t('<p>This is a one-time login for %user_name and will expire on %expiration_date.</p><p>Click on this button to log in to the site and change your password.</p>',array('%user_name'=>$account->name,'%expiration_date'=>format_date($timestamp+$timeout))));
}
$form['help']=array('#markup'=>'<p>'.t('This login can be used only once.').'</p>');