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

Node form template FATAL ERROR

Help!

I am running Drupal 5.1 and just enabled nodeform template.
When i go into admin/content types to add a form template, i receive the following error message:

Fatal error: Cannot pass parameter 1 by reference in D:\Program Files\xampp\htdocs\drupal\sites\all\modules\nodeformtemplate\nodeformtemplate.module on line 72

any ideas?

grace

Accessing database outside of a hook

I'm developing a module that uses JpGraph to draw some graphs. JpGraph works by generating an image, so you set an img tag's src to be some .php file. I'd like the graph to grab some data from the Drupal database, but the graph .php file isn't defined within any hook functions, so it doesn't have access to any Drupal functions.

Any module could enable that the sub-category will come into the parent category?

Any module could enable that the sub-category will come into the parent category?

The example:

I have a parent category "A",and a child category "B".

-A
-B

I create a stroy,choose the sub-category "B",Submited display the tags is "B",I hope the sub-category display too,tags is "A" and "B",May realize?

Thanks very much!

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.

Pages

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