{"action":"created","issue":{"url":"https://api.github.com/repos/contao/core/issues/7445","labels_url":"https://api.github.com/repos/contao/core/issues/7445/labels{/name}","comments_url":"https://api.github.com/repos/contao/core/issues/7445/comments","events_url":"https://api.github.com/repos/contao/core/issues/7445/events","html_url":"https://github.com/contao/core/issues/7445","id":49074858,"number":7445,"title":"[feature] add hook to parse simple tokens","user":{"login":"Zeromax","id":1867177,"avatar_url":"https://avatars.githubusercontent.com/u/1867177?v=3","gravatar_id":"","url":"https://api.github.com/users/Zeromax","html_url":"https://github.com/Zeromax","followers_url":"https://api.github.com/users/Zeromax/followers","following_url":"https://api.github.com/users/Zeromax/following{/other_user}","gists_url":"https://api.github.com/users/Zeromax/gists{/gist_id}","starred_url":"https://api.github.com/users/Zeromax/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zeromax/subscriptions","organizations_url":"https://api.github.com/users/Zeromax/orgs","repos_url":"https://api.github.com/users/Zeromax/repos","events_url":"https://api.github.com/users/Zeromax/events{/privacy}","received_events_url":"https://api.github.com/users/Zeromax/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2014-11-17T11:01:50Z","updated_at":"2015-02-17T09:40:31Z","closed_at":null,"body":"Is it possible to get a hook in the `\\String::parseSimpleTokens()` function?\r\nhttps://github.com/contao/core/blob/d0dc2dcdf91803b295a96e15958a8329d56d7234/system/modules/core/library/Contao/String.php#L484\r\n\r\nI would suggest to optional add the Module Object to the function:\r\n```php\r\npublic static function parseSimpleTokens($strString, $arrData, $objModule = null)\r\n```\r\n\r\nAll arguments should be passed to the hook and expect `$arrData` as a return value.\r\n\r\nAny other ideas or better suggestion?"},"comment":{"url":"https://api.github.com/repos/contao/core/issues/comments/74640768","html_url":"https://github.com/contao/core/issues/7445#issuecomment-74640768","issue_url":"https://api.github.com/repos/contao/core/issues/7445","id":74640768,"user":{"login":"aschempp","id":1073273,"avatar_url":"https://avatars.githubusercontent.com/u/1073273?v=3","gravatar_id":"","url":"https://api.github.com/users/aschempp","html_url":"https://github.com/aschempp","followers_url":"https://api.github.com/users/aschempp/followers","following_url":"https://api.github.com/users/aschempp/following{/other_user}","gists_url":"https://api.github.com/users/aschempp/gists{/gist_id}","starred_url":"https://api.github.com/users/aschempp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aschempp/subscriptions","organizations_url":"https://api.github.com/users/aschempp/orgs","repos_url":"https://api.github.com/users/aschempp/repos","events_url":"https://api.github.com/users/aschempp/events{/privacy}","received_events_url":"https://api.github.com/users/aschempp/received_events","type":"User","site_admin":false},"created_at":"2015-02-17T09:40:31Z","updated_at":"2015-02-17T09:40:31Z","body":"I don't think a new issue is necessary.\r\n\r\nBtw, you should take a look at our [notification center](https://github.com/terminal42/contao-notification_center), where you can also send registration mails etc but using backend templates."}}