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 was wondering if someone could kindly help me set the granularity of the date field depending on the role of the user using form alter or preprocess?
For user with role A I need 'm d Y' and for user with role B I need 'Y m d'
Thank you very much in advance!
Comments
Comment #1
YK85 CreditAttribution: YK85 commentedWould someone be able to kindly assist?
I require code that will change the granularity depending on role.
IF role A, use 'm d Y' order for select list. So [-Month] [-Day] [-Year]
IF role B, use 'Y m d' order for select list. So [-Year] [-Month] [-Day]
Thank you!
Comment #2
arlinsandbulte CreditAttribution: arlinsandbulte commentedHi,
I am just indiscriminately closing all support requests with no activity for more than 1 year.
If you consider this to still be a valid issue / support request, feel free to re-open.
BUT,
if you are re-opening this issue, please provide specific details on how this issue can move forward.
Thanks.