* elements, it is also used to define the ID of the trigger link */ function datepicker_add_picker($field) { // Add the field name to Drupal.settings.datepicker.fields drupal_add_js(array('datepicker' => array('fields' => $field)), 'setting'); }