-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.php
38 lines (31 loc) · 1.82 KB
/
settings.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<?php
defined('MOODLE_INTERNAL') || die;
if ($hassiteconfig) {
$from = get_admin();
$settings = new admin_settingpage('local_configlogemailer', 'Config Log Emailer');
$ADMIN->add('localplugins', $settings);
$name = 'local_configlogemailer/to_email';
$title = get_string('to_email_title','local_configlogemailer');
$description = get_string('to_email_description','local_configlogemailer');
$default = get_string('to_email_default','local_configlogemailer');
$setting = new admin_setting_configtext($name, $title, $description, $default);
$settings->add($setting);
$name = 'local_configlogemailer/from_email';
$title = get_string('from_email_title','local_configlogemailer');
$description = get_string('from_email_description','local_configlogemailer');
$default = get_string('from_email_default','local_configlogemailer',$from->email);
$setting = new admin_setting_configtext($name, $title, $description, $default);
$settings->add($setting);
$name = 'local_configlogemailer/from_firstname';
$title = get_string('from_firstname_title','local_configlogemailer');
$description = get_string('from_firstname_description','local_configlogemailer');
$default = get_string('from_firstname_default','local_configlogemailer',$from->firstname);
$setting = new admin_setting_configtext($name, $title, $description, $default);
$settings->add($setting);
$name = 'local_configlogemailer/from_lastname';
$title = get_string('from_lastname_title','local_configlogemailer');
$description = get_string('from_lastname_description','local_configlogemailer');
$default = get_string('from_lastname_default','local_configlogemailer',$from->lastname);
$setting = new admin_setting_configtext($name, $title, $description, $default);
$settings->add($setting);
}