You are here

function readonlymode_update_7100 in Read only mode 7

Update our weight so that we execute last.

This avoids other modules adding to forms after we clear them out.

1 call to readonlymode_update_7100()
readonlymode_install in ./readonlymode.install
Implements hook_install().

File

./readonlymode.install, line 33
Update hook and uninstaller for the Read Only Mode module

Code

function readonlymode_update_7100() {
  db_update('system')
    ->fields(array(
    'weight' => 9999,
  ))
    ->condition('type', 'module', '=')
    ->condition('name', 'readonlymode', '=')
    ->execute();
}