Closed (outdated)
Project:
Flag
Version:
7.x-3.x-dev
Component:
Documentation
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
12 Nov 2010 at 16:28 UTC
Updated:
18 Aug 2025 at 10:53 UTC
Jump to comment: Most recent
With the new v6.x-2.x on the way, and v7.x-2.x, it would be useful to have some API documentation bundled rather than having to read through the module's code.
Comments
Comment #1
damienmckennaI think the first thing would be to build a list of the hooks available.
Any others I missed?
Comment #2
tim.plunketthook_flag_reset
Comment #3
stevectorThis is needed for 7.x as well
Comment #4
joachim commentedUpping the version.
Comment #5
joachim commentedUpping the priority. People can't on this module without proper docs -- missing docs is a bug.
I'll make a start on figuring this out later.
Comment #6
socketwench commentedI hate to admit it, but I love writing docs. Shall I pick up this task?
Comment #7
joachim commentedI've made an initial stab at this: http://drupalcode.org/project/flag.git/blob/refs/heads/7.x-2.x:/flag.api...
A lot of these are a total mystery to me. If anyone could provide a one-line summary of any or all of them here, that would be a big help.
Comment #8
socketwench commentedWe could try backtracing the hooks to the module_invoke()s elsewhere in the code? That may give us some idea what some of them do.
Comment #9
joachim commentedI've been doing that.
I also tweeted at quicksketch, because it would be far more efficient to get the knowledge out of a brain that (perhaps still) contains it. No reply though.
Comment #10
joachim commentedAll the hooks in the api.php file now have documentation, and I believe all our hooks are listed.
Leaving this open as it would be nice for them to have example code too.
Comment #11
joachim commentedI missed hook_flag_export_alter().
Comment #12
joachim commentedTagging as novice.
Things still to do:
- add hook_flag_export_alter()
- add some stub code for each hook, using flag's own implementations as a starting point
I'll happily take partial patches!
Comment #13
joachim commentedI've added docs for hook_flag_export_alter().
Downgrading this to a normal task.
Comment #15
ivnishClosed as outdated because Drupal 7 is EOL