Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
feeds
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
drupal.org
feeds
Commits
d7af3ea3
Commit
d7af3ea3
authored
14 years ago
by
Alex Barth
Browse files
Options
Downloads
Patches
Plain Diff
Upgrade hook_permission().
parent
d86b94a3
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
feeds.module
+11
-5
11 additions, 5 deletions
feeds.module
with
11 additions
and
5 deletions
feeds.module
+
11
−
5
View file @
d7af3ea3
...
@@ -119,13 +119,19 @@ function feeds_reschedule($importer_id = NULL) {
...
@@ -119,13 +119,19 @@ function feeds_reschedule($importer_id = NULL) {
}
}
/**
/**
* Implementation of
hook_perm
().
* Implementation of
feeds_permission
().
*/
*/
function
feeds_perm
()
{
function
feeds_permission
()
{
$perms
=
array
(
'administer feeds'
);
$perms
=
array
(
'administer feeds'
=>
t
(
'Administer Feeds'
),
);
foreach
(
feeds_importer_load_all
()
as
$importer
)
{
foreach
(
feeds_importer_load_all
()
as
$importer
)
{
$perms
[]
=
'import '
.
$importer
->
id
.
' feeds'
;
$perms
[]
=
array
(
$perms
[]
=
'clear '
.
$importer
->
id
.
' feeds'
;
"import
$importer->id
feeds"
=>
t
(
'Import @name feeds'
,
array
(
'@name'
=>
$importer
->
config
[
'name'
])),
);
$perms
[]
=
array
(
"clear
$importer->id
feeds"
=>
t
(
'Delete items from @name feeds'
,
array
(
'@name'
=>
$importer
->
config
[
'name'
])),
);
}
}
return
$perms
;
return
$perms
;
}
}
...
...
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