You are here

function contact_update_7001 in Drupal 7

Rename the administer contact forms permission.

Related topics

File

modules/contact/contact.install, line 126
Install, update and uninstall functions for the contact module.

Code

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