Then, in settings.hooks.php, line 189, this seems incomplete. There is a label for a form element(?).
Line 190 is appropriate to show which existing hook is currently being edited, but there is no drop-down selector to choose a trigger when adding a hook.
In admin, Manage Hooks, select a plugin. Click the Add Hook tab.
In settings.hooks.inc.php, near line 143, this is where code execution should be.
The code block in lines 145-154 is the only place where
$hook_data
gets defined. That$hook_data
gets assigned to the template variableHOOK
.At line 170,
$hook_data
is used, but not yet defined. Suggest:Then, in settings.hooks.php, line 189, this seems incomplete. There is a label for a form element(?).
Line 190 is appropriate to show which existing hook is currently being edited, but there is no drop-down selector to choose a trigger when adding a hook.