Re: [drupal-devel] Hook_settings() confusion
According to the API (http://drupaldocs.org/api/head/function/hook_settings)
"This hook provides an administrative interface for controlling various settings for this module. A menu item for the module under "site configuration > modules" will appear in the administrative menu when this hook is implemented."
However, in my mt-blacklist module I'm working on, I have defined the function, but there is no link anywhere on the menu for the admin. Nor for spam.module which also defines it.
Directly entering the url to the settings page for the module however works fine.
Any idea what I've missed?
(4.5.2 install, CVS Spam)
It should be administer >> settings >> modulename, so I fixed the docs too. Goba
Any idea what I've missed?
I knew it would be me being stupid. In hook help I was returning "Spam: MT-Blacklist" as the module name, which was being used in the call to execute hooks as the module name. I assumed (wrongly) that this was to provide a "Nice" name for the module to users. Doh. Further, I had installed the spam.mysql, but not spam.module, this is what comes from rushing to do things in 20 minute slots prior to going to work. Please assume I'm an idiot for all future posts. Bah. Mike (now with working settings)...
participants (2)
-
Gabor Hojtsy -
Michael Jervis