diff --git a/docs/components/points.rst b/docs/components/points.rst index 55fcba42..fc12b401 100644 --- a/docs/components/points.rst +++ b/docs/components/points.rst @@ -83,6 +83,15 @@ In order for the custom Point Action to work, add something like the following i $this->getModel('point')->triggerAction('helloworld.action', $event->getHit()); +This triggers the custom Point Action for the currently tracked Contact. If you need to perform the Point Action on another Contact you have to pass the Contact's object when invoking ``triggerAction``: + +.. code-block:: php + + getModel('point')->triggerAction('helloworld.action', $event->getHit(), null, $someOtherLead); + + .. vale off Custom Point Action definition @@ -238,4 +247,4 @@ Custom Point Trigger definition * - ``callback`` - OPTIONAL - mixed - - Static callback function used to execute the custom action. \ No newline at end of file + - Static callback function used to execute the custom action.