You are here

function hosting_server_update_7302 in Hosting 7.3

Same name and namespace in other branches
  1. 7.4 server/hosting_server.install \hosting_server_update_7302()

Convert all roles with the 'administer server' permission to 'administer servers'.

File

server/hosting_server.install, line 389
Define the database schema and update functions for the hosting_server module.

Code

function hosting_server_update_7302() {
  db_update('role_permission')
    ->fields(array(
    'permission' => 'administer servers',
  ))
    ->condition('permission', 'administer server')
    ->execute();
}