summaryrefslogtreecommitdiffstats
path: root/print_mail
diff options
context:
space:
mode:
authorJoao Ventura2012-04-07 21:06:34 +0200
committerJoao Ventura2012-04-07 21:06:34 +0200
commitb8e059be29e001c58f8532f98dc29a5edce6f85c (patch)
tree21f4d6391396e045491c18612fa3e57bcded99a7 /print_mail
parent6771c3f3192fb6ef69b5733f847781af52896def (diff)
Move update function to print_mail module.
Diffstat (limited to 'print_mail')
-rw-r--r--print_mail/print_mail.install14
1 files changed, 14 insertions, 0 deletions
diff --git a/print_mail/print_mail.install b/print_mail/print_mail.install
index 6a2d5ea..62cbc64 100644
--- a/print_mail/print_mail.install
+++ b/print_mail/print_mail.install
@@ -167,3 +167,17 @@ function print_mail_update_7100(&$sandbox) {
mailsystem_set(array('print_mail' => 'DefaultMailSystem'));
}
}
+
+/**
+ * Update permissions to new spellings
+ */
+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();
+}