You are here

function badbehavior_update_7300 in Bad Behavior 7.2

Reset module weight for earliest possible loading position.

Implements hook_update_N().

File

./badbehavior.install, line 169
Install, update and uninstall functions for the Bad Behavior module.

Code

function badbehavior_update_7300() {
  $retfun = array();
  $retfun[] = db_update('system')
    ->fields(array(
    'weight' => -999,
  ))
    ->condition('type', 'module', '=')
    ->condition('name', 'badbehavior', '=')
    ->execute();
  return;
}