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

Logging conventions

Hi there, I could not find any documentation on logging conventions for module development. How do people do logging (debug, etc) and where do the logs get written?

Thanks!

How to add a very custom, dynamic array field to hook_form and node?

Hey,
I've installed Drupal 5.2 a short while ago, and am busy porting my website onto the system, which is going surprisingly well. Anyway, there is one thing that I am stuck on, and I can't figure out an elegant solution to this problem:

I have a form on my website, where users get to fill in some data and furthermore, select an (infinite) number of items out of a long list. It's not a shopping cart, but that might be a useful way to think of it, basically, I have two lists, one containing items a user has selected, together with two input fields per item, specifying say colour and quantity. The other list contains all remaining items, without any further input fields. I have written a Javascript to basically transfer items from one list to the other, simply by clicking on them.

(Furthermore, I have a small text input field above the right list to narrow down choice by regexp matching the contents of that list against the text in this field. - I don't think this should matter too much for my problem)

Well, if the form is submitted, I want to store all the items in the left list together with the values assigned in their respective two fields in a database table [and delete all those items from the table that were moved from the left to the right].

filter function and preg_match_all question

I'm trying to write a filter to select and parse all my headings.

I've looked at the code for the table of contents module which is selecting only <h2></h2> and <h3></h2>, so I need to adapt it. I've got the following so far:

Comment Hook on a non DB custom module

I have built a very simplistic module that reads from an included array to display a page that "houses" a flash application. This was done to business requirements BTW. So I was able to build the menu items, the block items and the permissions. However, I am confused at how, and if, I can get a comments section to the page. I looked through the API and other documentation to see if it is possible to get a comments section on this page, since it does not have a node ID (as it is not really a "node" module). But I can not see where or how I can get this to work.

How can I change the background color of my Nice_Menu

My be I am jsut missing it but I can find the place to change the color of my nice menus I can get the borders to change but not the color of the middle part. I have changed ever color in the nice_menu.css and played a little in the style.css. I also used firebug but it did not tell me. Here is the site http://www.fansportsunion.com/
can some one point me in the right area?
Also how can I change the color of the font in the nice menu?

Change Number of Posts to Display on taxonomy/term/xx page

I need to override the number of nodes displayed per the taxonomy/term/xx page. What I'm doing now is manually editing the pager_query function within the taxonomy_select_nodes() function of the taxonomy.module.

<?php
$result = pager_query($sql, 16, 0, $sql_count);
?>

So, if we are on a taxonomy/term/xx page that has a term id of a specific content type, I want to display 16 nodes as opposed to the setting within the admin section.

Pages

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