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

Session ID for anonymous users

I'm building a module that uses the session id to store information. There does not seem to be a way to get the session id for anonymous users through any drupal API. I would have thought that the user object would hold the session id like it does for logged in users in $user->sid. After looking at the session.inc file, the $user object has the sid in the object from the query:

CCK nodereference -- filereference?

I have a situation where file are being uploaded through filefield, but then we ran into a question: 'what happens when we need to have multiple nodes referencing the same file?'

If we would upload the same file through filefield, then a new entry is created in the files table and if uploaded to same location, the filename is incremented as well. If and when we need to then maintain this file, we would then have to update multiple files instead of just one.

How to remove [Preview Changes] button

I cannot remove [Preview Changes] from a node form. I have developed a custom module that implements a custom node type. I use the node form to enter/edit node data (which includes additional data stored in "non Drupal" DB tables).

The Drupal automatically puts four buttons at the bottom of the node form: [Submit], [Delete], [Preview] and [Preview Changes]

I can suppress three of the four by calling : unset($form['Delete']);... in the mynode_form_alter hook.

will someone please write a dummies guide to 'comment mover'?

I've successfully installed comment mover and switched it on etc.

However, when I try and move a blog item into a forum I don't get the graft option. The item is on the clipboard but I can't graft it.

Please let's have a plain English user guide...

Thanks,
Karl

acidfree and existing albums

I suspect I will have to do some customizing on my own, but before doing so, I thought
I would check. It looks like the existing implementation of acidfree / image places all the
imported files into the drupal/files/images directory.

No session object when user is not logged in?

Hello,

I am working on a module that uses the $_SESSION variable quite a lot.
However, it seems that for anonymous user this variable is emptied by Drupal.

Does anyone know where I can find out more about this? Is it documented anywhere?

Many thanks,

Hubert.

Pages

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