function print_mail_update_7101 in Printer, email and PDF versions 7
Same name and namespace in other branches
- 7.2 print_mail/print_mail.install \print_mail_update_7101()
Update permissions to new spellings
File
- print_mail/
print_mail.install, line 184 - Install, update and uninstall functions for the print_mail module.
Code
function print_mail_update_7101(&$sandbox) {
db_update('role_permission')
->fields(array(
'permission' => 'access send by email',
))
->condition('permission', 'access send to friend')
->execute();
db_update('role_permission')
->fields(array(
'permission' => 'send unlimited emails',
))
->condition('permission', 'send unlimited e-mails')
->execute();
}