TwistPHP Documentation

cancel

File path: dist/twist/Core/Models/Hooks.model.php
Namespace: Twist\Core\Models
Extends:

cancelCancel a hook from being active in the system, this will cancel the hook form the current page load only

Parameters

Name Type Description
$strHookstringn/a
$mxdUniqueKeymixedn/a
[$blPermanent = false]booleann/a

Return Values

void — No return information has been documented for this function.

Example

<?php
//Set the variables for the example
$strHook 'foo';
$mxdUniqueKey 'foo-123';
$blPermanent false;

//Call the function cancel with the example vars
$resHooks = new \Twist\Core\Models\Hooks();
$resHooks -> cancel($strHook$mxdUniqueKey$blPermanent);