Moodle plugins directory: Configuration Seeder | Moodle.org
Configuration Seeder
General plugins (Local) ::: 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
5 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:
version
This will be used as thelocal/confseed
plugin version. Only changes to that field will trigger new configuration enforcements.settings
is anarray
whose keys are the$CFG->
settings that need to be set to the provided valuesuser_info_categories
is anarray
ofstdClass
$DB
descriptors for the{user_info_category}
database table, which keys are codename for the belowuser_info_fields
.- Mandatory fields:
id
name
user_info_fields
is anarray
ofstdClass
$DB
descriptors for the{user_info_field}
database table, which keys are the tableshortname
s. Please refer touser/profile/field/*/define.class.php
for the various attributes' usages.- Mandatory fields:
name
datatype
auth_enable
is anarray
of authentication plugins (withoutauth/
norauth_
prefixes) that need to be forcibly enabledauth_disable
is anarray
of authentication plugins (withoutauth/
norauth_
prefixes) that need to be forcibly disabledenrol_enable
is anarray
of enrolment plugins (withoutenrol/
norenrolq_
prefixes) that need to be forcibly enabledenrol_disable
is anarray
of enrolment plugins (withoutenrol/
norenrol_
prefixes) that need to be forcibly disableduninstall_plugins
is anarray
of 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