{"issue":{"state":"closed","created_at":"2011-11-29T06:09:28Z","updated_at":"2011-11-29T06:09:38Z","user":{"gravatar_id":"0ef72d6d7f7ded4f9bf33c54eb11e19c","id":1202549,"url":"https://api.github.com/users/felixpfeiffer","avatar_url":"https://secure.gravatar.com/avatar/0ef72d6d7f7ded4f9bf33c54eb11e19c?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"felixpfeiffer"},"comments":8,"body":"Hallo Leo,\n\nich benötige einen Hook, der greift, bevor sämtliche Module geladen werden. Leider habe ich unter den bestehenden Hooks keinen passenden gefunden. Daher mein Gedanke in der PageRegular.php folgenden Code einzubinden:\n\n```\n// Initialize modules and sections\n\t\t$arrCustomSections = array();\n\t\t$arrSections = array('header', 'left', 'main', 'right', 'footer');\n\t\t$arrModules = deserialize($objLayout->modules);\n\n\t\t// HOOK: add logic before all modules are generated\n\t\tif (array_key_exists('pageRegular', $GLOBALS['TL_HOOKS']) && is_array($GLOBALS['TL_HOOKS']['pageRegular']))\n\t\t{\n\t\t\tforeach ($GLOBALS['TL_HOOKS']['pageRegular'] as $callback)\n\t\t\t{\n\t\t\t\t$this->import($callbackr0);\n\t\t\t\t$this->$callbackr0->$callbackr1($objPage);\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Generate all modules\n\t\tforeach ($arrModules as $arrModule)\n```\n\nEvtl. gibt es eine besser Lösung, diese würde mich aber schon mal glücklich machen.\n\nGruß, Felix\n\n--- _Originally created on January 4th, 2009, at 01:16pm (ID 391)_","assignee":{"gravatar_id":"87d2e5aefadcb310f9155df28c2b3582","id":1192057,"url":"https://api.github.com/users/leofeyer","avatar_url":"https://secure.gravatar.com/avatar/87d2e5aefadcb310f9155df28c2b3582?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"leofeyer"},"id":2378585,"labels":[{"name":"Feature","color":"4183c4","url":"https://api.github.com/repos/contao/test/labels/Feature"},{"name":"framework","color":"e6e6e6","url":"https://api.github.com/repos/contao/test/labels/framework"}],"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"number":391,"title":"Hook in der PageRegular","closed_at":"2011-11-29T06:09:38Z","html_url":"https://github.com/contao/test/issues/391","url":"https://api.github.com/repos/contao/test/issues/391","milestone":null},"action":"closed"}