| Línea 51... |
Línea 51... |
| 51 |
|
51 |
|
| 52 |
// Add message output processors enabled/disabled and settings.
|
52 |
// Add message output processors enabled/disabled and settings.
|
| 53 |
$output .= $this->heading(get_string('messageoutputs', 'message'));
|
53 |
$output .= $this->heading(get_string('messageoutputs', 'message'));
|
| Línea 54... |
Línea -... |
| 54 |
$output .= $this->manage_messageoutputs($allprocessors);
|
- |
|
| 55 |
|
- |
|
| 56 |
// Add active message output processors settings.
|
- |
|
| 57 |
$output .= $this->manage_defaultmessageoutputs($processors, $providers, $preferences);
|
54 |
$output .= $this->manage_messageoutputs($allprocessors);
|
| 58 |
|
55 |
|
| 59 |
$output .= html_writer::start_tag('div', array('class' => 'form-buttons'));
|
56 |
$output .= html_writer::start_tag('div', ['class' => 'form-buttons mb-3']);
|
| 60 |
$output .= html_writer::empty_tag('input',
|
57 |
$output .= html_writer::empty_tag('input',
|
| 61 |
array('type' => 'submit', 'value' => get_string('savechanges', 'admin'), 'class' => 'form-submit btn btn-primary')
|
58 |
array('type' => 'submit', 'value' => get_string('savechanges', 'admin'), 'class' => 'form-submit btn btn-primary')
|
| 62 |
);
|
59 |
);
|
| Línea -... |
Línea 60... |
| - |
|
60 |
$output .= html_writer::end_tag('div');
|
| - |
|
61 |
$output .= html_writer::end_tag('form');
|
| - |
|
62 |
|
| 63 |
$output .= html_writer::end_tag('div');
|
63 |
// Add active message output processors settings.
|
| 64 |
$output .= html_writer::end_tag('form');
|
64 |
$output .= $this->manage_defaultmessageoutputs($processors, $providers, $preferences);
|
| Línea 65... |
Línea 65... |
| 65 |
|
65 |
|
| 66 |
return $output;
|
66 |
return $output;
|
| Línea 142... |
Línea 142... |
| 142 |
|
142 |
|
| 143 |
// Settings for each processor
|
143 |
// Settings for each processor
|
| 144 |
foreach ($processors as $processor) {
|
144 |
foreach ($processors as $processor) {
|
| Línea -... |
Línea 145... |
| - |
|
145 |
$setting = new StdClass();
|
| - |
|
146 |
|
| - |
|
147 |
$supportsprocessor = true;
|
| - |
|
148 |
if ($processor->name === 'sms') {
|
| - |
|
149 |
$supportsprocessor = core_message\helper::supports_sms_notifications($provider);
|
| - |
|
150 |
}
|
| 145 |
$setting = new StdClass();
|
151 |
$setting->supportsprocessor = $supportsprocessor;
|
| 146 |
|
152 |
|
| Línea 147... |
Línea 153... |
| 147 |
$setting->lockedsetting = $providersettingprefix.'locked['.$processor->name.']';
|
153 |
$setting->lockedsetting = $providersettingprefix.'locked['.$processor->name.']';
|
| 148 |
$preference = $processor->name.'_provider_'.$providersettingprefix.'locked';
|
154 |
$preference = $processor->name.'_provider_'.$providersettingprefix.'locked';
|