MDL-57409 tool_mobile: New forcelogout setting

This commit is contained in:
Juan Leyva
2017-01-09 12:19:28 +01:00
parent 8ed0851a5e
commit fb0add0456
3 changed files with 16 additions and 1 deletions
+12
View File
@@ -81,5 +81,17 @@ if ($hassiteconfig) {
new lang_string('iosappid_desc', 'tool_mobile'), '633359593', PARAM_ALPHANUM));
$ADMIN->add('mobileapp', $temp);
// Features related settings.
$temp = new admin_settingpage('mobilefeatures', new lang_string('mobilefeatures', 'tool_mobile'));
$temp->add(new admin_setting_heading('tool_mobile/logout',
new lang_string('logout'), ''));
$temp->add(new admin_setting_configcheckbox('tool_mobile/forcelogout',
new lang_string('forcelogout', 'tool_mobile'),
new lang_string('forcelogout_desc', 'tool_mobile'), 0));
$ADMIN->add('mobileapp', $temp);
}
}