MyBB Community Forums

Full Version: MyBB's Hook System
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Line 888 of inc/datahandlers/post.php there's this code:
$plugins->run_hooks_by_ref("datahandler_post_insert_post", $this);

How do I return data to be included in the post data insertion? I'm trying to get it to post a value for the field 'mobile' (which does exist) but I don't know how to use it properly since the function uses $this, and I'm a php n00b.

help?
http://community.mybb.com/thread-79460.html

Check the above thread where you had your other question, it shows how to use that hook
Alrighty, thanks.