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

Make a sorting table

I want to make a database table which can be sorted if i click on "sort" button.How can i do it ?

Proper way for reading and writing user data

So I need to both read and write user data and I'm wondering if there is a better way than globalizing and unserializing data (then serialize it back if I need to write)? Something more like user_access(). This would be for the current user mostly, but I'd like to edit other users data too if possible (w/o resorting to manual editing, i.e. queries, serialization, etc). But mainly the current user... I really enjoy coding for Drupal and I've learned a lot lately, it's well put togheter but I'm stuck at this point.

Create nodes that relate to each other? How?

Howdy,

I've been reading Pro Drupal Development and reading through the Handbooks but no where can I find an explanation of how Drupal Nodes handle many to many relationships. I understand most aspects of MySQL and I can see how I might force these relations with a relationship table and jimi it into the module's forms. I guess my problem is that I haven't seen that recommended and I'm not sure how the Drupal community suggests this should be handled.

For example: An event node can take place at many location nodes and vice versa.

Views: Possible to create views of users?

Based on profile questions, I'd like to use Views to create several result sets of registered users on our site.

Don't see user ID's or profile fields as available field options in Views... but I bet this nut has been cracked before. Any suggestions?

Thanks
-Greg

Access to $_POST and $_FILES superglobals when submitting a node form

I've created a node type as part of a module that I'm developing. When the form to add the node is submitted, I'd like to have access to the raw $_POST and $_FILES superglobals. Does anyone know where I would be able to do that? I tried it inside my implementation of hook_insert and hook_update, and that didn't work. When the form is submitted, the data is added to the database and then the user is immediately redirected to the page containing the nodes content.

Thank you in advance to anyone who can help.

Name that Module

I am looking for the name of the module that allows you to get your blog posts in organized groups.
I saw it at http://www.sanfranciscorealestatebrain.com/ after following a link from the forums.

If you go to the link above and look on the left side of the layout, the expandable categories are what I am talking about.

How do I get my blog posts to do go into something like that automatically when they are posted?

Thanks.

Pages

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