Skip to content
Snippets Groups Projects
Commit 0249cff5 authored by Jeff Geerling's avatar Jeff Geerling
Browse files

Updated honeypot link to use hook_menu_link_defaults().

parent d25d1aed
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
/**
......
honeypot__config:
honeypot.config:
path: '/admin/config/content/honeypot'
defaults:
_form: '\Drupal\honeypot\HoneypotSettingsController'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment