3.17.4. before_pm_list

(Phorum 5 >= 5.2.17)

This hook can be used for retreiveing a list of messages via an alernate method other than the built in.

Call time:

Before the private message list is retreived from the database

Hook input:

A PM folder id

Hook output:

A list of private messages compatible with phourm_db_pm_list()

Example code:

function phorum_mod_foo_before_pm_list($folder_id)
{
    // Query the db directly and apply custom code

    return $messages;
}