contao/core — pull request #5045 by psren (2012-11-20 21:05:00+00:00)
Title: Feature: completely change headerfields in mode4

In my case i have many variables i'd like to display in the headerfields (mode 4) in a very specific way.
I'd like to add the array of headerfields to a template instead of dumping it as table.

So i'd suggest the following, backwards compatible change. This way it's possible to change the header to any string including rendered template data.

It can be used with the header_callback like this

```php
/**
* Edit the Headerfields in mode 4
* @param Array $arrHeaderFields the headerfields given via header_callback
* @param Datacontainer $dc a Datacontainer Object
* @return Array|String The manipulated headerfields
*/
public function showTask($arrHeaderFields, Datacontainer $dc)
{
// We can eighter dump the header data as table
// return $arrHeaderFields;
// But now i want to replace the complete header with a string (or a template)
return 'Foobar';
}
```