Closed (fixed)
Project:
Module Builder
Version:
7.x-2.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
15 Mar 2011 at 23:47 UTC
Updated:
26 Feb 2018 at 12:04 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
joachim commentedLet's call this a bug :)
Comment #2
joachim commentedThough I have to say I'm adamant on keeping "@file foo.module" -- that's what I use to get the module basename when writing further hooks directly...
Comment #3
aaronott commentedHere is a patch to clean a few things up:
Changes
Implementation of hook_help().
to
Implements hook_help().
Cleans a couple white spaces up, but there is a white space that appears after the hook_menu that I can't find.
- function tester_menu() {[space here]
Regarding the @file $filename, I wasn't able to find where you need that filename. I was going to see if there was any other way we could change it. We could possibly write the block as
/**
* @file
* $filename
*
* Description of the file
**/
and this way it would pass the coder test.
Thoughts?
Comment #4
joachim commentedThis may help... #1095706: Add an option for all hooks.
That way you can run the entirety of the hook templates through Coder very easily.
> * @file
> * $filename
Works for me :)
When I say I use that for writing more hooks, I mean, by hand :)
If I'm in the module code and need the module basename for something, usually writing a hook, but also just writing new functions, it's very handy to have a piece of text I can double-click and copy.
Comment #5
joachim commentedThis is fixed in DCB.