Closed (fixed)
Project:
Drupal core
Version:
7.x-dev
Component:
trigger.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
9 Dec 2008 at 14:11 UTC
Updated:
6 Apr 2010 at 12:50 UTC
Jump to comment: Most recent file
Comments
Comment #1
dave reidI have no objection to this. It makes more sense for it to be named hook_trigger_info().
Comment #2
miro_dietikerProviding patch for this rename against HEAD.
Comment #3
keith.smith commentedpossiblityis misspelled (it apparently was also a typo before this patch but it still needs to be fixed).Comment #4
dave reidI fixed the spelling error and I confirmed that all possible replacements have been made. Follow-ups will be to make sure we document the change in the 6.x to 7.x page and also commit the change to contrib/docs/examples/trigger_example.module.
Comment #5
dave reidComment #6
catchVery nice change.
Comment #7
miro_dietikerAfter all that positive confirmation i've consulted the file again..
There are other occurences of the word "hook" (e.g. variables $hook, $hooks) that are not critical for this api redefinition but could be renamed to $trigger, $triggers, ...
Should we do this in the same cycle? I'm not perfectly sure about all internal replacements.
Comment #8
catchHmm, I think it probably makes sense to change $hook to $trigger here, setting to needs review rather than CNW though in case that's out of scope.
Comment #9
dave reidMakes sense to change the $hook(s) variables to $trigger(s).
Comment #10
dave reidOne little $trigger that should have been $triggers... and a little cleanup.
Comment #12
dave reidRerolled for review.
Comment #14
casey commentedhttp://api.drupal.org/api/function/hook_trigger_info/7