function user_update_7014

Rename the 'post comments without approval' permission.

In Drupal 7, this permission has been renamed to 'skip comment approval'.

Related topics

File

modules/user/user.install, line 825

Code

function user_update_7014() {
  db_update('role_permission')->fields(array(
    'permission' => 'skip comment approval',
  ))
    ->condition('permission', 'post comments without approval')
    ->execute();
  return t("Renamed the 'post comments without approval' permission to 'skip comment approval'.");
}

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