Total Hook Extremism

Categories

Component ID

946906

Component name

Total Hook Extremism

Component type

module

Component security advisory coverage

covered

Downloads

751

Component created

Component changed

Component body

Total Hook Extremism (THE) allows you to run functions by regular expression.

Example:

$regex = '/^[a-zA-Z0-9]*\_block\_info$/';
$results = the_module_invoke_all($regex);

print_r($results, TRUE);

This will execute any function that matches the regular expression... but it's harder than you think. Go ahead. Try it.

The Public API

the_module_invoke_all()

It's better[sic] than the real module_invoke_all().

the_executioner()

Execute any function by regular expression.

the_matchmaker()

Find any functions that match a regular expression.

the_goods()

Get a list of all defined functions.