contao/test — Issue #1069: Framework Hook Method
Author: importer
Created: 2011-11-28 17:57:35+00:00
State: open
Labels: Feature

It would be fine, when there exists a simple COreFunction, which handles the Hook trigger
Calling just a function with the KEY and a number of variables in an array.

This function runs only the _everywherereadable_

```
$strOuptut=''

foreach ($GLOBALS['TL_HOOKS'][$KEY] as $callback)
{
$this->import($callback[0]);
$strOutput .= $this->$callback[0]->$callback[1](&$this, $objLayout);
}
```

Than it is for example possible, to define a dca-type similar parameter for handling user rights or handling the output of the stream.

It's just a simplification, and can be used in modules, absolutly smooth.

Related issues: #3311

--- _Originally created by lindesbs on October 8th, 2009, at 08:15am (ID 1074)_