Example #1
0
function message_on_quote(&$api)
{
    include dirname(__FILE__) . '/message_controller.class.php';
    $parent_id = (int) $_POST['parent_id'];
    $quoted_msg = $api->forumdb()->get_posting_from_id($parent_id);
    $posting = message_init_posting_from_post_data();
    $controller = new MessageController($api);
    $controller->show_compose_quoted($posting, $quoted_msg);
}