Timeline for How can I to override a specific variable from a contributed module?
Current License: CC BY-SA 4.0
17 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Aug 25, 2022 at 14:45 | answer | added | Tobias Krause | timeline score: 1 | |
Aug 24, 2022 at 21:04 | history | edited | avpaderno♦ | CC BY-SA 4.0 |
removed "Drupal" and tags from the title
|
Aug 24, 2022 at 18:26 | history | edited | Joehoe | CC BY-SA 4.0 |
goal
|
Aug 24, 2022 at 18:08 | comment | added | Joehoe | @Jaypan I have added my goal | |
Aug 24, 2022 at 18:06 | history | edited | Joehoe | CC BY-SA 4.0 |
add img
|
Aug 24, 2022 at 18:05 | review | Close votes | |||
Sep 8, 2022 at 3:09 | |||||
Aug 24, 2022 at 17:52 | comment | added | Jaypan | Can you please add your human-friendly use-case to the topic? You've explained how you are trying to do something that isn't working, but without knowing what the end goal is, we cannot tell you how to fix your issue. | |
Aug 24, 2022 at 17:52 | history | edited | Joehoe | CC BY-SA 4.0 |
edited body
|
Aug 24, 2022 at 17:42 | history | edited | Joehoe | CC BY-SA 4.0 |
add start
|
Aug 24, 2022 at 16:15 | comment | added | Joehoe |
I was not expecting it. Within the class $end_date is declared in different methods as a new \Datetime ... and a input field. I would like to hide end_date and is automatically + 1 hour
|
|
Aug 24, 2022 at 16:07 | history | edited | Joehoe | CC BY-SA 4.0 |
typo
|
Aug 24, 2022 at 16:01 | history | edited | Joehoe | CC BY-SA 4.0 |
added target form id
|
Aug 24, 2022 at 16:00 | comment | added | Clive♦ |
Just to clarify, and apologies if I've misunderstood, it might just be the way I'm reading it - are you expecting this line: $end_date = clone($start_date); to somehow override a similar line in a method within the AddReservationForm form class? If so I'd strongly recommend reading up on some PHP OO basics, that just isn't how it works
|
|
Aug 24, 2022 at 15:57 | history | edited | Joehoe | CC BY-SA 4.0 |
added 5 characters in body
|
Aug 24, 2022 at 15:55 | comment | added | Kevin | mymodule_alter needs to be mymodule_form_alter. And you need to target the form id so you dont touch any other forms. | |
Aug 24, 2022 at 15:51 | history | edited | Joehoe | CC BY-SA 4.0 |
deleted 20418 characters in body
|
Aug 24, 2022 at 15:42 | history | asked | Joehoe | CC BY-SA 4.0 |