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.
Hello,
I do not know that is an other way in D7 or not but I needed to using this on a D7 project.
Please check it. I was made some changes and it work properly on D7 now.
Regards,
Joe
Comment | File | Size | Author |
---|---|---|---|
placeholder-7.x-1.x.dev_.tar_.gz | 7.33 KB | dj1999 |
Comments
Comment #1
ericduran CreditAttribution: ericduran commentedThis is already posible if you use the elements modules for both 6.x and 7.x
Comment #2
bleen CreditAttribution: bleen commentedwho knew ?!? ... I've used elements on a few sites already, just never realized it added support for #placeholder.
I suppose this module still works for browsers that dont support #placeholder yet ... but in light of this revelation, I dont think I'll bother porting it to D7
Comment #3
dj1999 CreditAttribution: dj1999 commentedThanks, I will using elements module in future.
Comment #4
steveoliver CreditAttribution: steveoliver commentedWhy not just use #attributes['placeholder'] directly? Works for me without Elements.