Closed (fixed)
Project:
Privatemsg
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
16 Apr 2010 at 03:25 UTC
Updated:
11 Dec 2010 at 15:20 UTC
Jump to comment: Most recent file
I'm calling this function from a node-item.tpl.php page:
drupal_get_form('privatemsg_new', $uid, "I want $title")
I get the error:
warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'privatemsg_new' was given in /var/www/donate/includes/form.inc on line 372.
I'm using Drupal 6 and the privatemsg module is installed.
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | move_functions.patch | 7.33 KB | berdir |
Comments
Comment #1
ram327 commentedI figured it out.
I just needed to include this:
module_load_include('pages.inc','privatemsg');
Comment #3
asinnema commentedI get the following error:
Fatal error: Call to undefined function _privatemsg_list_headers() in /home/lotl/domains/lotl.nl/public_html/sites/all/modules/privatemsg/privatemsg.module on line 884
This is around line 884:
I'd really appreciate help on this, the embed function sounds really useful for my case. :)
Comment #4
berdirWhat about reading comment #1 then ;)
Anyway, setting to active again so that we can move the function to the .module file.
Comment #5
asinnema commentedI read the first comment but it seemed to be a totally different problem. I'm not a php guru, so I wouldn't know if it had anything to do with my error. It just seemed like the right topic to post my question in.
Thanks for the fast response anyway, any help is appreciated.
Comment #6
berdirWell, yes, this issue and your problem are something different, so it is actually your comment that is off-topic here ;)
However, #1 fixes both your problem and the original issue.
Comment #7
berdirPatches moves the list header/thread functions back into the .module file.
Comment #8
berdirCommited.