function user_update_7014
7.x user.install | 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
- drupal-7.x/
modules/ user/ user.install, line 812 - Install, update and uninstall functions for the user module.
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'.");
}