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

how to retrieve the day select in the new date type form API?

Hello, I have a problem with this, I'm creating a module, and I put this in the form hook:

$form['group']['date1'] = array('#type' => 'date','#title' => t('Date1'),'#default_value' =>$edit[$form->fecha_carrera],'#required' => TRUE);

and then, in the insert hook I need to retrieve the selected day by the user... but if I do this (is an example):

$datetoinsert=$node->date1;
echo $datetoinsert;

I obtain "array", instead of the selected day by the user.

how do I limit one comment per node per user

hello.
I'm working on a board like content type and I like to enable authenticated users to leave only one comment for any node (adv.). user are not to see other users comments for this node at all.
How do I do that ?

filemangaer: replace copy with ftp

hi

several people (including me) seem to have php safe mode on and dont want to or dont have the chance to turn it off

is it not possible to replace the copy function with a ftp workaround?

in the file.inc on line 272 (4.6.3):

if (!@copy($source, $dest)) {
drupal_set_message(t('File copy failed.'), 'error');
return 0;
}

replace it with something like this (this code ist not working - i am not a programmer so thats only to show the idea):

Navigation

I am a new user of Drupal and have accidentally taken off the navigation. Can anyone advise me how to get it back!

Formproc module

I just started using Drupal. and it looks like a real good cms system.

I wanted to create a form with the formproc module, but i had some problems.

What did i do:
- copyd formproc.module , datafield.formproc and default.formproc to modules
- I edited the forum.module like told in the readme.txt

After this i just wanted to do a test, to see if i could open the default.formproc

Question:
- How do i display the form
- How can link to a form in menu

Making a module Views "aware"?

Hi all

More question from me! I am now getting into 4.7 in a big way and am again looking at creating my own news type module. I have looked at flexinode, fleximax and cck however I do not need the ability to create multiple new nodes so these are an overkill, so I am creating my own for a number of reasons.

Anyway, I would be interested in making the module compatible with the Views module and make it Views "aware" so to speak. Can anyone throw some light on how I would go abaout it or what I need to include to make it happen?

Cheers

Pages

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