Need to extract hook descriptions and show them somehow (title attribute?) when displaying the list of all hooks.
Since this requires a change to the regex in _module_builder_extract_hook_data I'm thinking at the same time I will get rid of HOOK_FUNCTION_BODY. The intent of this originally was to place the hook function's body in if one was not already defined, but I think that would just get way more confusing than it needs to be.
Comments
Comment #1
webchickDescriptions are now displayed underneath each hook! I greatly welcome any AJAX-inclined person to help make that "swoosh" or whatever. ;)
While I was in there, I made a bunch of minor changes to hopefully improve code readability, including:
- "definition" is now "declaration" since "definition" is kind of ambiguous
- Made all the constants plural, since they retrieve all of that type of info, not only one
- Got rid of the part of the regex that was retrieving hook function bodies, per above
- Refactored some of the functionality with retrieving/extracting hook info
Comment #2
(not verified) commented