On 08/14/2012 11:10 AM, Jure Kranjc wrote:
I have a question about hooks in rc 0.8. We have a plugin depending on mailboxes_list hook which is now named storage_folders. Plugins modifies the list of avalible folders, so users cannot subscribe to some. When function returns an array of folders, RC does't accept that array and lists either all of the folders or just the inbox folder. The returned array is exactly the same as in version 0.7.2 but RC0.8 refuses to use it. Any suggestions?
I don't remember any change besides the name change of this hook. Are you sure the function is executed?, folders list is cached. Also, do you return an array 'folders' element or just array of folders?