Timeline for How to inject text into the beginning of a textfield?
Current License: CC BY-SA 3.0
9 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Oct 14, 2013 at 12:48 | history | rollback | Beebee |
Rollback to Revision 3
|
|
Oct 14, 2013 at 12:48 | history | edited | Beebee | CC BY-SA 3.0 |
deleted 14 characters in body
|
Oct 14, 2013 at 9:03 | history | edited | Beebee | CC BY-SA 3.0 |
added 1884 characters in body
|
Oct 14, 2013 at 8:55 | comment | added | Beebee | @drupalina check the updated answer. Sorry for late update I usually don't login to d.se on weekends :) | |
Oct 14, 2013 at 8:54 | history | edited | Beebee | CC BY-SA 3.0 |
added 1884 characters in body
|
Oct 12, 2013 at 3:46 | comment | added | drupalina | @Beebee I have updated my question with a custom module based on what you wrote, but it didn't work: the Language Sections module doesn't come into effect the way that it would if I actually had "=en=" and "=fr=" inside the textarea. I also tried both 'field_description_en' and 'description_en'. Can you please help? | |
Oct 12, 2013 at 3:05 | comment | added | drupalina | @Beebee thanks for the code! Indeed, my 3 textarea fields are named field_description_fr field_description_nl field_description_en . I understand that I will need to create a module out of the first code, but where do I put the second code. Since I'm not much of a coder could you please rewrite your code as a module called "language_markers" for the forms IDs property_for_sale_node_form and property_to_rent_node_form . I REALLY appreciate your help! | |
Oct 11, 2013 at 16:31 | comment | added | Clive♦ |
Good answer, actually made me realise what the question was really asking :) I think you could probably do it with rules too, and also hook_field_presave() , hook_node_update() , hook_entity_update() , etc. Plenty of different places this code could go, the form submit handler seems like as good a place as any
|
|
Oct 11, 2013 at 15:32 | history | answered | Beebee | CC BY-SA 3.0 |