ePages 6.11.0 - DE_EPAGES/Trigger/API/Trigger.pm

Package DE_EPAGES::Trigger::API::Trigger

This package collects functions for hooks.

@EXPORT_OK
TriggerHook

Functions

TriggerHook

TriggerHook

Checks if external functions are hooked at this point and calls them if so. If multiple functions are hooked to the same hook they are called in the appropriate order. If the hook name does not exist, the function DIEs. The $hArgs hash is passed to each called function which can manipulate it.

Syntax
TriggerHook($HookName, $hArgs);
Example
TriggerHook('OBJ_DeleteObject', { Object => $self });
Input
$HookName (string)
name of hook
$hArgs (reference to hash)
arguments for hook functions, following keys are added by this function:
  • HookCount - number of registered hook functions - integer
  • HookName - name of hook (copy of $HookName parameter)- string
  • HookCounter - actual function position - integer