You are here

function system_update_7021 in Drupal 7

Change the PHP for settings permission.

Related topics

File

modules/system/system.install, line 2236
Install, update and uninstall functions for the system module.

Code

function system_update_7021() {
  db_update('role_permission')
    ->fields(array(
    'permission' => 'use PHP for settings',
  ))
    ->condition('permission', 'use PHP for block visibility')
    ->execute();
}