function system_update_7021

Change the PHP for settings permission.

Related topics

File

modules/system/system.install, line 2255

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.