You are here

function autologout_update_7401 in Automated Logout 7.4

Fix permission names in role_permission table

File

./autologout.install, line 83
Install file for JS Logout Module

Code

function autologout_update_7401() {
  db_update('role_permission')
    ->fields(array(
    'permission' => 'administer autologout',
  ))
    ->condition('permission', 'auto administer autologout', '=')
    ->execute();
}