backdrop-contrib / references

References module for Backdrop CMS
GNU General Public License v2.0
2 stars 6 forks source link

Add hook_update_1000() and hook_update_last_removed(), remove Drupal update hooks #2

Closed jromine closed 8 years ago

jromine commented 9 years ago

Info https://api.backdropcms.org/converting-modules-from-drupal

Add hook_update_1000(): This is the required update to run with Backdrop core API 1.x when upgrading from Drupal core API 7.x.

When upgrading a module, all previous updates should be deleted. If a module has updates numbered 6xxx or 7xxx, be sure to remove all these updates.

When removing these updates, you should provide an implementation of hook_update_last_removed() to indicate which version of the module schema you're expecting when an upgrade is performed: