Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 0 additions & 10 deletions auth/campusconnect/config.html

This file was deleted.

33 changes: 33 additions & 0 deletions auth/campusconnect/settings.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<?php
defined('MOODLE_INTERNAL') || die();

if ($ADMIN->fulltree) {
// Add a heading/title for your plugin's settings section
$settings->add(new admin_setting_heading(
'auth_campusconnect/pluginheading',
get_string('campusconnect', 'auth_campusconnect'),
''
));

// Add the authentication lock options
$settings->add(new admin_setting_heading(
'auth_campusconnect/fieldlocksheader',
get_string('auth_fieldlocks', 'auth'),
get_string('auth_fieldlocks_help', 'auth')
));

// The actual lock options (replaces print_auth_lock_options)
foreach ($user_fields as $field => $name) {
$settings->add(new admin_setting_configselect(
"auth_campusconnect/field_lock_{$field}",
$name,
'',
'unlocked',
array(
'unlocked' => get_string('unlocked', 'auth'),
'unlockedifempty' => get_string('unlockedifempty', 'auth'),
'locked' => get_string('locked', 'auth')
)
));
}
}