You are here

function profile2_update_7106 in Profile 2 7.2

Increase the module weight.

1 call to profile2_update_7106()
profile2_install in ./profile2.install
Implements hook_install().

File

./profile2.install, line 405
Install, update and uninstall functions for the profile module.

Code

function profile2_update_7106() {

  // Increase the weight of module in the system table,
  // this is to make it higher than user_diff (if installed).
  db_update('system')
    ->fields(array(
    'weight' => 1,
  ))
    ->condition('name', 'profile2', '=')
    ->execute();
}