Add a hook to privatemsg module attachment

Sophia - March 11, 2009 - 20:24
Project:Upload path
Version:6.x-1.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:postponed
Description

Our site uses uploadpath and we are ever so happy with it, since it really keeps our folder structure neat and clean. Currently I am testing the sub-module to upload attachments in the privatemsg module, and reported it does not upload in personal folders.

The answer Berdir gave:

About uploadpath, I just had a short look at the code. They use hook_nodeapi to rename the files so it obviously doesn't work with privatemsg_attachments.

However, they could also add a hook_privatemsg_message_insert and use the same code, they would just need to loop over $message['files'] instead of $node->files. I would suggest to add a feature request to that module when this has been commited. It doesn't really makes sense before.

I don't profess to understand it all, but here I am, asking if it is possible to add this hook and if so, can I help in any way :)

Original discussion: http://drupal.org/node/342733#comment-1336022

#1

Sophia - March 11, 2009 - 20:28
Status:active» postponed

Just an addition: Berdir just said it doesn't make sense to add this hook until it has been officially released with the privatemsg module. I took the liberty to ask here anyway, since I have no doubt the module will be released any time soon, and changed the status to "postponed".

 
 

Drupal is a registered trademark of Dries Buytaert.