General plugins (Local): Configuration Seeder

local_confseed
Maintained by Picture of Didier Raboud Didier Raboud, Liip Logo 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.
26 sites
9 downloads
2 fans

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 the local/confseed plugin version. Only changes to that field will trigger new configuration enforcements.
  • settings is an array whose keys are the $CFG-> settings that need to be set to the provided values
  • user_info_categories is an array of stdClass $DB descriptors for the {user_info_category} database table, which keys are codename for the below user_info_fields.
  • Mandatory fields:
  • id
  • name
  • user_info_fields is an array of stdClass $DB descriptors for the {user_info_field} database table, which keys are the table shortnames. Please refer to user/profile/field/*/define.class.php for the various attributes' usages.
  • Mandatory fields:
  • name
  • datatype
  • auth_enable is an array of authentication plugins (without auth/ nor auth_ prefixes) that need to be forcibly enabled
  • auth_disable is an array of authentication plugins (without auth/ nor auth_ prefixes) that need to be forcibly disabled
  • enrol_enable is an array of enrolment plugins (without enrol/ nor enrolq_ prefixes) that need to be forcibly enabled
  • enrol_disable is an array of enrolment plugins (without enrol/ nor enrol_ prefixes) that need to be forcibly disabled
  • uninstall_plugins is an array of full plugin names (such as theme_oldmamma) to be uninstalled. If set, all pre-2.7 themes are also uninstalled

Screenshots

Screenshot #0

Contributors

Picture of Didier Raboud
Didier Raboud (Lead maintainer)
Liip Logo
Liip eLearning Team
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
Please login to post comments