Brimbox Logo Brimbox Version 2.3.4 Released


Method to execute a hook.

Class: bb_build, called as $main

File: bb_build.php (php)


function hook($hookname)



global $array_hooks
global $abspath

Note: The hook method relies on $array_hooks (derived from the global array) which has the form:
$array_hooks[hookname][priority] = array(‘func’=>callable, ‘vars’=>variables, ‘file’=>filepath)
where callable is a callable function, variables are string representations of callable function parameters, and filepath is an include file that can contain the callable function.

The callable function must have the same parameters as the variables declared $array_hooks.

Note: See page Using Hooks and Filters for more information.

Parameter: $name (string)
Name of the hook being executed. If more than one hook function is attached to the hook array hook will execute multiple hook functions in priority order.

Updated: 2016-07-10