forms

Some Drupal links for developers

Some good Drupal developer guides or reference pages

Forms API

CCK

Views

Theme

Add a datepicker programmatically with jquery_ui

This is some idea on how you can add a datepicker programmatically with the jquery_ui module. This code is not working as it is, its just some code I have cut out from my code. You have to match the form id in the jquery script as the drupal form creates. Look for edit-from, edit-to, edit-month in the script. I have here two alternative jquery scripts. And you find more scripts at the link to jqueryui.com below.

 

 

How to send argument to drupal_get_form()

This is how you send arguments to your own form when using drupal_get_form() in Drupal 6.x. This function has no required argument, but receives $form_state as first argument. Declare a first argument for $form_state and then your arguments, as many as you need.


<?php
function my_module_begin_form($form_state, $my_arg = array(), $another = "") {
...
}

...

$out = drupal_get_form('my_module_begin_form', $my_arg, $another);
?>

Pages