daily links

  • Customizing Drupal date field with hook_form_alter and #after_build | Tech Blog by New Leaf Digital | Ben Buckman.net
    I spent a long time today trying to figure out how to customize a Date field in Drupal 6. The field is called field_recurring_dates. I tried everything else I could think of: #process, theme overrides for every element, preprocess, with no luck. The field is generated by a hook_elements inside the Date module, and I couldn't find the equivalent of a hook_elements_alter … until I asked on IRC and got the perfect solution from Fox: the Form API's #after_build callback.

Possibly related posts (automatically generated)