backdrop-contrib / coder_upgrade

Helps automate some/most of the work required to upgrade a module from Drupal to Backdrop 1.x
GNU General Public License v2.0
4 stars 7 forks source link

variable_get('...', array()) leads to "dynamic value..." in config, .install #43

Closed bugfolder closed 3 years ago

bugfolder commented 3 years ago

A variable_get() that is initialized from an empty array, e.g., variable_get('mymodule_setting', array()), leads to a "dynamic value in file..." value in the config file and install function. Since empty arrays are relatively common initialization values, it would be nice to catch this situation and properly set the config and install values.

bugfolder commented 3 years ago

PR https://github.com/backdrop-contrib/coder_upgrade/pull/44