Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
P
print
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Custom Issue Tracker
Custom Issue Tracker
Labels
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
project
print
Commits
b8e059be
Commit
b8e059be
authored
Apr 07, 2012
by
jcnventura
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move update function to print_mail module.
parent
6771c3f3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
9 deletions
+15
-9
print.install
print.install
+1
-9
print_mail/print_mail.install
print_mail/print_mail.install
+14
-0
No files found.
print.install
View file @
b8e059be
...
...
@@ -169,15 +169,7 @@ function print_update_7000(&$sandbox) {
}
/**
*
Update permissions to new spellings
*
Empty update
*/
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
();
}
print_mail/print_mail.install
View file @
b8e059be
...
...
@@ -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
();
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment