Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
filter_perms
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
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
filter_perms
Commits
e99f3933
Commit
e99f3933
authored
15 years ago
by
Christopher Yu
Browse files
Options
Downloads
Patches
Plain Diff
wrapped subtext with t()
parent
8a2e08c8
Branches
master
Tags
7.x-3.0
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
filter_perms.module
+2
-2
2 additions, 2 deletions
filter_perms.module
with
2 additions
and
2 deletions
filter_perms.module
+
2
−
2
View file @
e99f3933
...
...
@@ -47,7 +47,7 @@ function filter_perms_admin_perm_filter() {
$module_options
=
array
();
foreach
(
module_list
(
FALSE
,
FALSE
,
TRUE
)
as
$module
)
{
if
(
$module
==
'content_permissions'
)
{
$module_options
[
$module
]
=
$module
.
' (or select individual content types below)'
;
$module_options
[
$module
]
=
$module
.
' (
'
.
t
(
'
or select individual content types below
'
)
.
'
)'
;
$content_types
=
node_get_types
(
'types'
);
foreach
(
$content_types
as
$content_type
)
{
$content_type_info
=
content_types
(
$content_type
->
type
);
...
...
@@ -202,7 +202,7 @@ function filter_perms_user_admin_perm_submit($form, &$form_state) {
$permissions
=
array
();
$indexed_perms
=
array
();
$current_perms
=
db_result
(
db_query
(
"SELECT perm FROM
{
permission
}
WHERE rid = %d"
,
$role
->
rid
));
if
(
strlen
(
$current_perms
))
{
if
(
drupal_
strlen
(
$current_perms
))
{
$permissions
=
explode
(
', '
,
$current_perms
);
}
foreach
(
$permissions
as
$permission
)
{
...
...
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