Moodle Plugins directory: Configuration Seeder | Moodle.org
Configuration Seeder
Local plugins ::: local_confseed
Maintained by
Didier Raboud,
Liip eLearning Team
A Moodle settings enforcer for custom developments; this plugin allows the automated setup of various configurations that are hard to setup through config.php' $CFG. It 'seeds' configurations in the DB at install or upgrade time. Contrary to configurations set through $CFG, these modifications are not locked, and allow Moodle admins to then update these.
Latest release:
1 sites
6 fans
Current versions available: 1
local/confseed - A Moodle settings enforcer for custom developments
This plugin allows the automated setup of various configurations that are usually hard to setup through config.php.
Syntax
It uses a special file config-seed.php containing only the $CONFSEED configuration variable, which is a stdClass in which attributes can be set to be enforced at upgrade time:
versionThis will be used as thelocal/confseedplugin version. Only changes to that field will trigger new configuration enforcements.settingsis anarraywhose keys are the$CFG->settings that need to be set to the provided valuesuser_info_categoriesis anarrayofstdClass$DBdescriptors for the{user_info_category}database table, which keys are codename for the belowuser_info_fields.- Mandatory fields:
idnameuser_info_fieldsis anarrayofstdClass$DBdescriptors for the{user_info_field}database table, which keys are the tableshortnames. Please refer touser/profile/field/*/define.class.phpfor the various attributes' usages.- Mandatory fields:
namedatatypeauth_enableis anarrayof authentication plugins (withoutauth/norauth_prefixes) that need to be forcibly enabledauth_disableis anarrayof authentication plugins (withoutauth/norauth_prefixes) that need to be forcibly disabledenrol_enableis anarrayof enrolment plugins (withoutenrol/norenrolq_prefixes) that need to be forcibly enabledenrol_disableis anarrayof enrolment plugins (withoutenrol/norenrol_prefixes) that need to be forcibly disableduninstall_pluginsis anarrayof full plugin names (such astheme_oldmamma) to be uninstalled. If set, all pre-2.7 themes are also uninstalled
Useful links
Contributors
Didier Raboud (Lead maintainer)
Liip eLearning Team
Please login to view contributors details and/or to contact them
Comments