Drupal and Web Development Tidbits

Update hooks: Run specific hook

June 14, 2021

Written by: Jon Kamke

How to re-run an update hook.

Example drush command to to run a specific update hook. Replace MYMODULE with your module name and NUMBER with the update hook number.

drush php-eval "module_load_install('MYMODULE'); MYMODULE_update_NUMBER();"