Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
honeypot-3461131
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
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
Issue forks
honeypot-3461131
Commits
0249cff5
Commit
0249cff5
authored
10 years ago
by
Jeff Geerling
Browse files
Options
Downloads
Patches
Plain Diff
Updated honeypot link to use hook_menu_link_defaults().
parent
d25d1aed
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
honeypot.module
+7
-10
7 additions, 10 deletions
honeypot.module
honeypot.routing.yml
+1
-1
1 addition, 1 deletion
honeypot.routing.yml
with
8 additions
and
11 deletions
honeypot.module
+
7
−
10
View file @
0249cff5
...
...
@@ -6,19 +6,16 @@
*/
/**
* Implements hook_menu().
* Implements hook_menu
_link_defaults
().
*/
function
honeypot_menu
()
{
$
items
[
'admin/config/content/
honeypot'
]
=
array
(
'title'
=>
'Honeypot configuration'
,
function
honeypot_menu
_link_defaults
()
{
$
links
[
'
honeypot
.config
'
]
=
array
(
'
link_
title'
=>
'Honeypot configuration'
,
'description'
=>
'Configure Honeypot spam prevention and the forms on which Honeypot will be used.'
,
// TODO - Remove once http://drupal.org/node/1845402 is resolved?
'page callback'
=>
'NOT_USED'
,
'access callback'
=>
'user_access'
,
'access arguments'
=>
array
(
'administer honeypot'
),
'parent'
=>
'system.admin.content'
,
'route_name'
=>
'honeypot.config'
,
);
return
$items
;
return
$links
;
}
/**
...
...
This diff is collapsed.
Click to expand it.
honeypot.routing.yml
+
1
−
1
View file @
0249cff5
honeypot
__
config
:
honeypot
.
config
:
path
:
'
/admin/config/content/honeypot'
defaults
:
_form
:
'
\Drupal\honeypot\HoneypotSettingsController'
...
...
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