diff --git a/admin/tool/mobile/lang/en/tool_mobile.php b/admin/tool/mobile/lang/en/tool_mobile.php index 53081b05c2d..5493521b0bc 100644 --- a/admin/tool/mobile/lang/en/tool_mobile.php +++ b/admin/tool/mobile/lang/en/tool_mobile.php @@ -30,6 +30,8 @@ $string['enablesmartappbanners'] = 'Enable Smart App Banners'; $string['enablesmartappbanners_desc'] = 'This will display a banner promoting the Moodle Mobile app when visiting the site in Mobile Safari.'; $string['forcedurlscheme'] = 'If you want to allow only your custom branded app to be opened via a browser window, then specify its URL scheme here; otherwise leave the field empty.'; $string['forcedurlscheme_key'] = 'URL scheme'; +$string['forcelogout'] = 'Force log out'; +$string['forcelogout_desc'] = 'If enabled, the app option \'Change site\' is replaced by \'Log out\'. This results in the user being completely logged out. They must then re-enter their password the next time they wish to access the site.'; $string['httpsrequired'] = 'HTTPS required'; $string['invalidprivatetoken'] = 'Invalid private token. Token should not be empty or passed via GET parameter.'; $string['iosappid'] = 'App\'s unique identifier'; @@ -41,6 +43,7 @@ $string['mobileapp'] = 'Mobile app'; $string['mobileappearance'] = 'Mobile appearance'; $string['mobileauthentication'] = 'Mobile authentication'; $string['mobilecssurl'] = 'CSS'; +$string['mobilefeatures'] = 'Mobile features'; $string['mobilesettings'] = 'Mobile settings'; $string['pluginname'] = 'Moodle Mobile tools'; $string['smartappbanners'] = 'Smart App Banners (iOS only)'; diff --git a/admin/tool/mobile/settings.php b/admin/tool/mobile/settings.php index 9cc8d9088e3..45b4799821a 100644 --- a/admin/tool/mobile/settings.php +++ b/admin/tool/mobile/settings.php @@ -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); } } diff --git a/admin/tool/mobile/version.php b/admin/tool/mobile/version.php index 87915c0eb18..b6a3b7be00c 100644 --- a/admin/tool/mobile/version.php +++ b/admin/tool/mobile/version.php @@ -23,7 +23,7 @@ */ defined('MOODLE_INTERNAL') || die(); -$plugin->version = 2016120500; // The current plugin version (Date: YYYYMMDDXX). +$plugin->version = 2016120501; // The current plugin version (Date: YYYYMMDDXX). $plugin->requires = 2016112900; // Requires this Moodle version. $plugin->component = 'tool_mobile'; // Full name of the plugin (used for diagnostics). $plugin->dependencies = array(