Closed (outdated)
Project:
CAPTCHA
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
7 May 2013 at 11:29 UTC
Updated:
4 Oct 2019 at 22:37 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
elachlan commentedCould you please provide a link to documentation on how to implement this, or provide a patch?
Comment #2
joachim commentedSure, here are some docs pages about this:
- https://drupal.org/coding-standards/docs#functions
- https://drupal.org/node/161085
All core modules have a *.api.php file that you can use as a template.
You can also use Module Builder to generate the scaffold for the api.php file.
Comment #3
nagwani commentedAttaching .api.php. Created from api.txt file. Please review.
Comment #4
joachim commentedLooks like a good start! Few things missing and need cleaning up:
You should have only one docblock for each function. The 'Implementation...' one should be removed.
Parameters and return need to be documented.
Comment #5
nagwani commentedUpdated.
Comment #6
nagwani commentedComment #10
mgbellaire commentedjoachim, are you saying that the "Implementation..." blocks need to be removed and not replaced by anything else?
Comment #11
mgbellaire commentedUpdating shown files...
Comment #12
joachim commentedFrom the docs:
So for example:
Comment #13
max-kuzomko commentedComment #16
max-kuzomko commentedComment #17
wundo commented