change _booking_ucname function to handle names like McClure

This commit is contained in:
Nathan Coad
2018-01-18 12:13:56 +11:00
parent 584376bf25
commit c70b05922d
2 changed files with 34 additions and 4 deletions

View File

@@ -7,7 +7,9 @@ function booking_node_presave($node) {
if($node->type == 'booking') {
$title = t('!event registration: !name', array(
'!event' => $event->booking_eventname,
'!name' => _booking_ucname($node->booking_firstname . ' ' . $node->booking_lastname),
// no longer needed since applied at node creation
//'!name' => _booking_ucname($node->booking_firstname . ' ' . $node->booking_lastname),
'!name' => $node->booking_firstname . ' ' . $node->booking_lastname,
));
//strip any emojis from user input if that feature is enabled