You are here

function user_revision_update_7001 in User Revision 7.2

Same name and namespace in other branches
  1. 7 user_revision.install \user_revision_update_7001()

Change the weight of User Revision Module so all hooks are executed last.

This way all changes made in hook_user_presave etc. won't be lost.

File

./user_revision.install, line 255
Install, update and uninstall functions for the user_revision module.

Code

function user_revision_update_7001() {
  db_update('system')
    ->fields(array(
    'weight' => 99,
  ))
    ->condition('name', 'user_revision', '=')
    ->execute();
}