For some reason, I'm having problems getting to the point where I can even call drupal_http_request(). I changed my module slightly so that the form is modified in hook_user(). But for some reason, I can't get anything to happen when $op = 'insert' or $op == 'register'. I would like to see the form data I have available, but when I put something like "drupal_set_message('<pre>'. print_r($user, TRUE) .'</pre>');" in the 'insert' case, I get absolutely nothing. How can I get my data to be displayed so I can see it? Is there a way to do it with the devel module?
Thanks.
Steve
support-request@drupal.org wrote:
Send support mailing list submissions to support@drupal.org
To subscribe or unsubscribe via the World Wide Web, visit http://lists.drupal.org/listinfo/support or, via email, send a message with subject or body 'help' to support-request@drupal.org
You can reach the person managing the list at support-owner@drupal.org
When replying, please edit your Subject line so it is more specific than "Re: Contents of support digest..."
Today's Topics:
- Using drupal_http_request() (Steve Edwards)
- converting podcasts to feeds (Sarah.Vardy@student.griffith.edu.au)
- Re: book module (Eric-Alexander Schaefer)
- Re: Using drupal_http_request() (Saint-Genest Gwenael)
- Re: Locking down drupal for use by multiple (semi-)untrusted administrators (Saint-Genest Gwenael)
Message: 1 Date: Tue, 20 Nov 2007 22:20:18 -0800 From: Steve Edwards killshot91@comcast.net Subject: [support] Using drupal_http_request() To: support@drupal.org Message-ID: 4743CE22.8030708@comcast.net Content-Type: text/plain; charset=ISO-8859-1; format=flowed
I've jumped in to finish up a site that someone else started (yee ha!), and I need to do two things with the user registration data:
- Add some custom fields to the user registration form (i.e. address/city/state/zip, job title, occupation, company, etc.)
- Use the data to add the user to an embedded mail list manager program (Oempro by Octeth).
Oempro can generate a script that adds the data to their database, and I can post to that script. I modified the user registration form and added fields using hook_form_alter(), and that works fine. The next step is to use hook_user() when $op == 'insert' to post the user data to the Oempro script using drupal_http_request(). This brings up two issues:
- How can I access the user data in hook_user()? Is it part of $user at that point, or would it be in $edit? Or another place?
- How do I use drupal_http_request()? Unfortunately I'm not very familiar with HTTP headers or with this function, so I'm not
sure what to do. For instance, do I put the form data (assuming I can get to it in hook_user()) to the $data parameter in array form? And what do I put in the $header variable for a request like this?
Thanks.
Steve
Message: 2 Date: Wed, 21 Nov 2007 16:29:39 +1000 From: Sarah.Vardy@student.griffith.edu.au Subject: [support] converting podcasts to feeds To: support@drupal.org Message-ID: f561ec2a51cd.47445cf3@student.griffith.edu.au Content-Type: text/plain; charset="us-ascii"
Hi,I was wondering if there is a pre-existing module that converts podcasts to feeds in drupal? ie. so a user can upload a podcast to the Drupal cms and this is automatically converted to a feed? Any help would rock! Sarah
Research Computing Services Sarah.Vardy@student.griffith.edu.au 0402241794