1

In my academic website, I need to add graduation year as a date field but for month field, I want to add only two month (May and December).

Can I do this?

My professor want like this and i don't have any idea to solve my situation.

Can you help me?

1

Use hook_form_alter to change the date field on the node form you can only select those two months (and disable the rest).

  • can you assist me how can i do this ? Because i am new at Drupal. – Dhruvit Patel Jul 28 '15 at 15:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.