Timeline for Date popup form field doesn't show the default value correctly
Current License: CC BY-SA 3.0
10 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Feb 13, 2018 at 21:20 | history | tweeted | twitter.com/StackDrupal/status/963523399690711041 | ||
Feb 13, 2018 at 20:04 | answer | added | liquidcms | timeline score: 1 | |
Nov 28, 2012 at 10:16 | history | edited | avpaderno♦ | CC BY-SA 3.0 |
deleted 203 characters in body; edited title
|
Sep 22, 2012 at 7:12 | vote | accept | swindler | ||
Sep 13, 2012 at 22:04 | review | First posts | |||
Sep 22, 2012 at 3:15 | |||||
Aug 29, 2012 at 7:27 | answer | added | swindler | timeline score: 10 | |
Aug 28, 2012 at 18:29 | history | edited | swindler | CC BY-SA 3.0 |
edited body
|
Aug 28, 2012 at 18:25 | comment | added | swindler | Thanks,Clive. Yes, it is set the right way. After debugging i've found it turns wrong after pre_render function called ctools_smth_pre_render.Currently don't remember it's name clearly. Possibly it conflicts with ctools module.Going to investigate further later. Currently it looks this way:$form['all']['start'] = array( '#type' => 'date_popup', '#size' => 30, '#title' => t('Begin at Date'), '#maxlength' => 30, '#date_format' => 'Y-M-d','#default_value' => date('Y-M-d', $date), ); | |
Aug 28, 2012 at 15:14 | comment | added | Clive♦ |
I can't find the issue for it right now but it used to be that you had to set the #default_value in a very specific format to get it to work...'#default_value' => date('Y-m-d', $date)
|
|
Aug 28, 2012 at 14:59 | history | asked | swindler | CC BY-SA 3.0 |