Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
print
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
print
Commits
b8e059be
Commit
b8e059be
authored
Apr 7, 2012
by
João Ventura
Browse files
Options
Downloads
Patches
Plain Diff
Move update function to print_mail module.
parent
6771c3f3
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
print.install
+1
-9
1 addition, 9 deletions
print.install
print_mail/print_mail.install
+14
-0
14 additions, 0 deletions
print_mail/print_mail.install
with
15 additions
and
9 deletions
print.install
+
1
−
9
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
();
}
This diff is collapsed.
Click to expand it.
print_mail/print_mail.install
+
14
−
0
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
();
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment