Closed (works as designed)
Project:
Actions
Version:
5.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
2 Dec 2006 at 10:36 UTC
Updated:
2 Dec 2006 at 13:33 UTC
All Drupal modules use hooks in the form of [modulename]_[hookname]() only actions turns this around. Why is that?
What would need to be considered when changing this to more default Drupal behaviour?
Comments
Comment #1
jvandyk commentedI presume that at sometime in the future, Drupal will have lots of actions. What would we need to collect this list of actions? We'd need a hook that maps actions to functions, then we'd need the action functions themselves.
Much faster and less code to simply extract all actions from the PHP symbol table. Any function that begins with action_ is automatically available. See actions_list().