Commit b8e059be authored by jcnventura's avatar jcnventura

Move update function to print_mail module.

parent 6771c3f3
...@@ -169,15 +169,7 @@ function print_update_7000(&$sandbox) { ...@@ -169,15 +169,7 @@ function print_update_7000(&$sandbox) {
} }
/** /**
* Update permissions to new spellings * Empty update
*/ */
function print_update_7100(&$sandbox) { function print_update_7100(&$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();
} }
...@@ -167,3 +167,17 @@ function print_mail_update_7100(&$sandbox) { ...@@ -167,3 +167,17 @@ function print_mail_update_7100(&$sandbox) {
mailsystem_set(array('print_mail' => 'DefaultMailSystem')); 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();
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment