This forum is for module development and code related questions, not general module support. For general support, use the Post installation forum.

how to get currrent user id and current anonymous user id in Drupal 5.x??

I am developing an upload module that the attachement either visible by all visitors or member only. Anybody knows how to get currrent user id and current anonymous user id in Drupal 5.x??

How to get currrent user id and current anonymous user id??

I am developing an upload module that the attachement either visible by all visitors or member only. Anybody knows how to get currrent user id and current anonymous user id in Drupal 5.x??

Problem when using Form API 2.0 to create multipage form

Hello!

I am trying to use Form API 2.0 to create a multipage form. I follow this article: http://drupal.org/node/101707.

The problem is: if I do not put the $form_values as the first parameter I cannot get it, and the first one is the real $form_values.

So if my function is my_form($form_values), it is ok. If my function is my_form($param, $form_values), the data from form page 1 will be stored in $param but not $form_values.

Revisions

Hi,

I would like to use the revisions with 4.6,
I use the function node_revision_create($node) each time I update the node but it doesn't work!
Did anyone have this problem before?

Drutex simplification

I currently use the Drutex module to show different math problems and solutions on my website. It certainly does look good, I've never even imagined it's possible, you can take a look at the result on www.studentblock.com under the "My first day in MA 275." My question is whether it is possible to make the code a little bit more simple, so I don't have to type $\frac, \cdot or other commands all the time.

Can't copy file attachment to tmp directory

This is a very strange error message considering that it's occuring on a development site which is an exact copy of a production site, they have the same database and files, paths to files and tmp directory are same.

Pages

Subscribe with RSS Subscribe to RSS - Module development and code questions