[Split]Modifying post data

Discussion forum for Extension Writers regarding Extension Development.
zvunks
Registered User
Posts: 20
Joined: Mon Jul 08, 2013 6:58 pm

[Split]Modifying post data

Post by zvunks »

Hello!

Which event should I use to parse custom BB codes in post_text:
(view topic)

Code: Select all

static public function getSubscribedEvents()
    {
        return [
            'core.viewtopic_modify_post_data' => 'load_language_on_setup',
        ];
    }

    /**
     * Load the Acme Demo language file
     *     acme/demo/language/en/demo.php
     *
     * @param \phpbb\event\data $event The event object
     */
    public function load_language_on_setup($event)
    {
    	
    	//die();
    	print_r($event);
so I can access $event[post_text], and change that.

Thanks!

Return to “Extension Writers Discussion”