Problem/Motivation
Hook update fails due to missing function.
Steps to reproduce
Running updb - readonlymode_update_8001() produces an error.
- Call to undefined function update_variables_to_config()
I don't see this function defined anywhere.
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
Issue fork readonlymode-3188818
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
shortradius commentedComment #7
solideogloria commentedComment #8
altcom_neil commentedHi,
I don't think what your initial patch does what the update hook was meant to be doing.
I think it was intended to convert the 7.x version of the modules config to the 8.x version. It should be something like:
I haven't tested this as we didn't use the 7.x version.
Comment #9
solideogloria commentedI think you're right. The changes are completely wrong. Can you update the MR?
Also, I would use
$configinstead of$settingsComment #11
astonvictor commentedActually, there is no need to use the update function anymore.
The
update_variables_to_config()function was created to move variables to configs from Drupal 7 to Drupal 8. Currently, all releases only work with Drupal 10+. So, it doesn't make sense.I think we should keep the empty function in case someone adds a new update function that should end with +1 in the name.
Comment #13
astonvictor commented