You are here

function entityconnect_update_7101 in Entity connect 7

Same name and namespace in other branches
  1. 7.2 entityconnect.install \entityconnect_update_7101()

Change module weight so that other modules are less likely to break the redirect that this module performs after creating a referenced entity.

File

./entityconnect.install, line 107
Install, update & uninstall functions for the Entity Connect module.

Code

function entityconnect_update_7101() {

  // We need to run after the workbench_email module so that our
  // entityconnect_return redirect works properly.
  db_update('system')
    ->fields(array(
    'weight' => 1,
  ))
    ->condition('name', 'entityconnect')
    ->condition('type', 'module')
    ->execute();
}