function contact_update_7001

Rename the administer contact forms permission.

Related topics

File

modules/contact/contact.install, line 126

Code

function contact_update_7001() {
    db_update('role_permission')->fields(array(
        'permission' => 'administer contact forms',
    ))
        ->condition('permission', 'administer site-wide contact form')
        ->execute();
}

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