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

Critique of first module and hook_form_alter question

Hi,

I have written my first module called 'monument' and got it to function as I want more or less.
(http://drupal.org/project/monument)

There are two bugs, one is not too bad and the other is a showstopper

Illegal choice in option element of select form

There's lot's of posts about illegal choice problems, but I can't seem to find a good explanation of why this is happening. I have a form:

   $form['status'] = array('#type' => 'select',
      '#title'         => t('Status'),
      '#default_value' => $node->status,
      '#options'  => array('pending'=>t('pending'),'closed'=>t('closed')),
      '#description'   => t('Status')
   );

That always causes an illegal check error.

Web Services

hello

i would knowing , how i can create a WebService by using apache on linux and Mono.Net as a .NET framwork on linux.

(my server is on linux redhat 9.0) and (the clients were on wondows 2003 or xp)

cordially

how to dynamically generate form tree ?

Hi all,
I have a form which will be generated dynamically by checking more check box. The code goes like this;

If ($node->more){
$node->rows += 1;
}
for ($i = 0; $i< $node->rows; $i++){
$form[‘answers’ . $i] = array(
‘#type’ => ‘fieldset’,
‘#tree’ => true
);
} 
$form[‘more’] = array(
‘#title’ => t(‘check this if you need more answers’),
‘#type’ => ‘checkbox’,
#value’ => 0
);

My problem is which is the best way to validate, insert, update, load all these values?

Want to contribute? New module idea...

Hi all!

Would you like to contribute to Drupal with a module which would be widely used (at least I think so!)? I know there exists an audio module, but I was testing it and I don't like it much...

I launch this idea to the air because my knowledge of PHP is not enough to do it by myself. There is an audio plugin for wordpress which is really nice. The module, demo, instructions and all are here. I suggest to port it to drupal.

In a way I've done it, but not really. I use this module in article content-type embedding the flash player in the article, see an example here, but I have to copy-paste the embedding code in the article every time.

I'm thinking in someone who can develop a new module which would add the "podcast" content-type to drupal.

In the new module options there should be the possibility of setting the default colors of the player (left background, text, right background, background, left icon, etc), the default directory to store the MP3, and the default text for the download link.

When you create a new podcast-content you should be able to override the default settings and choosing an MP3 to be uploaded automatically to the MP3 folder. It would be also nice to be able to write the new post in this way:

mailsave for 4.7

A while back I wrote a module for Drupal 4.6 called "mailsave" that works with mailhandler to save attachments from emails. If you are also running image.module it automatically converts your post to an image node, and shows the picture. The module can handle multiple attachments, although only the first jpeg will be displayed.

Pages

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