Attached patch add doxygen @file tag in install files.

See : http://api.drupal.org/api/files/7

Comments

lilou’s picture

Title: Doxygen @file for all .install » Add doxygen @file for all .install
snufkin’s picture

StatusFileSize
new14.91 KB

- @file to update.module's .install file
- re-rolled against head
- corrected typo for locale.install, profile.install

Overall it looks good to me, all core install files are affected, and all contain the correct text in their install file saying that

/**
 * @file 
 * <modulename> module's install and update code
**/

and uninstall where its relevant. One might want to polish the explanation text, but thats the only reason I am leaving it on CNR, otherwise its good to go.

Status: Needs review » Needs work

The last submitted patch failed testing.

lilou’s picture

Status: Needs work » Needs review

failure was due to HEAD not installing properly

catch’s picture

Status: Needs review » Needs work

I think we'd be better off finding a generic string we can use for every file - updates come and go for core modules each release and we don't want to keep changing the @file every time we add/remove one.

dave reid’s picture

"Install, update and uninstall functions for the [module-name] module."? Just an idea since core currently uses "Admin page callbacks for the [module-name] module." in module.admin.inc files.

webchick’s picture

Issue tags: +Novice

This would be a good issue for a new contributor to solve.

lilou’s picture

Assigned: Unassigned » lilou

I'm a novice ;-)

karschsp’s picture

Status: Needs work » Needs review
StatusFileSize
new18.63 KB

Here's a patch using DaveReid's suggested text from @#6.
steve

Status: Needs review » Needs work

The last submitted patch failed testing.

lilou’s picture

Status: Needs work » Needs review
StatusFileSize
new19.11 KB

Reroll.

lilou’s picture

Status: Needs review » Needs work

The last submitted patch failed testing.

lilou’s picture

Status: Needs work » Closed (duplicate)
deekayen’s picture

Status: Closed (duplicate) » Needs work

@lilou: It would probably be easier for you to get the @file part fixed first. Doing all the things in #14 in one patch is going to be hard to keep up to date. Are you willing to finish this out?

catch’s picture

Status: Needs work » Needs review

Sending for re-test.

lilou’s picture

@deekayen : ok, waiting reviews now tests passes.

catch’s picture

Status: Needs review » Reviewed & tested by the community

Looks good, let's get this in.

webchick’s picture

Status: Reviewed & tested by the community » Needs work
Issue tags: +Needs documentation

This patch makes me all warm and happy on the inside. :D

Committed to HEAD. Thanks!

We should document this in the coding standards, and the D6 -> D7 upgrades page.

lilou’s picture

I add info to D6 -> D7 upgrades page.

catch’s picture

Status: Needs work » Fixed
lilou’s picture

Status: Fixed » Needs review

@file is already include in coding standard.

catch’s picture

Status: Needs review » Fixed

I think we crossposted, definitely fixed.

xano’s picture

Is this just about using @file or about putting the code as mentioned here in install files? If it's the latter, could we please for the sake of professionalism stop using "The xxx module"? That is exactly the same as saying "The Volkswagen car" or "The Dries human". Modules have names, so let's use them directly, possibly suffixed with ".module" to prevent confusion.

lilou’s picture

@Xano : look at http://api.drupal.org/api/files/7

examples of @file tags :

Admin page callbacks for the aggregator module.
Fetcher functions for the aggregator module.
Install, update and uninstall functions for the aggregator module.
User page callbacks for the aggregator module.
Parser functions for the aggregator module.
...

I have a Volkswagen car ;-)

webchick’s picture

"Saturn" can be a car or a planet or a video game system. ;) It's nice to be specific. Plus some things such as menu and path can refer to both modules and also underlying parts of the system.

I also edited http://drupal.org/node/1354 to make specific mention of .install files following their own template rules for @file. I think this is really fixed now.

Status: Fixed » Closed (fixed)
Issue tags: -Needs documentation, -Novice

Automatically closed -- issue fixed for 2 weeks with no activity.