executePreActions

The executePreActions hook is triggered on Ajax requests that do not require a DCA object. It passes the name of the action as argument and does not expect a return value.

Available

from Contao 2.6.1.

Example

<?php

// config.php
$GLOBALS['TL_HOOKS']['executePreActions'][] = array('MyClass', 'myExecutePreActions');

// MyClass.php
public function myExecutePreActions($strAction)
{
    if ($strAction == 'update')
    {
        // Do something
    }
}

More information

References

See also

results matching ""

    No results matching ""