Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The $form['format'] = $formats['input']['text']; in the following code results in a FAPI loop on /node/add/<node-type>, but only if jscalendar is enabled and the date widget type is set to 'Text Field...'.
diff -u -p -r1.9.2.5 date.inc
--- date.inc 16 Sep 2006 16:16:12 -0000 1.9.2.5
@@ -997,7 +997,7 @@ function date_text_input($params) {
'#description' => $description,
'#weight' => $weight,
);
= $form['format'] = $formats['input']['text'];
}
// if the jscalendar is used for input, add some attributes to be passed to the js
Comments
Comment #1
KarenS CreditAttribution: KarenS commentedThanks for catching that. It is a leftover line from a change I did not make after all.
Comment #2
(not verified) CreditAttribution: commented