mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
MDL-60680 notifications: Include action buttons information
This commit is contained in:
parent
36fa0ec900
commit
2356454f21
12 changed files with 77 additions and 27 deletions
|
@ -356,6 +356,12 @@ function message_post_message($userfrom, $userto, $message, $format) {
|
|||
$userpicture->includetoken = $userto->id; // Generate an out-of-session token for the user receiving the message.
|
||||
$eventdata->customdata = [
|
||||
'notificationiconurl' => $userpicture->get_url($PAGE)->out(false),
|
||||
'actionbuttons' => [
|
||||
'send' => get_string_manager()->get_string('send', 'message', null, $eventdata->userto->lang),
|
||||
],
|
||||
'placeholders' => [
|
||||
'send' => get_string_manager()->get_string('writeamessage', 'message', null, $eventdata->userto->lang),
|
||||
],
|
||||
];
|
||||
return message_send($eventdata);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue