There is a typo bug in expand_date() that shows date selection fields as radios (you can test it by creating a user profile with a 'date' field). Also, comments (documentation) above expand_date() and theme_date functions are wrong. The patch changes 'radio' to 'select'.

Darius

CommentFileSizeAuthor
patch_13848 bytesdarius

Comments

pfaocle’s picture

Version: » x.y.z

Confirmed here too, attempting to use a date form element in archive.module. The patch seems to fix it, but there is a problem if profile.module is disabled. In line 496 of forms.inc:

  $options = drupal_map_assoc(range(1, 12), '_profile_map_month');

_profile_map_month() doesn't return anything if the profile module is disabled, resulting in a broken date form element. Should we be relying on an optional module in a core API?

moshe weitzman’s picture

Status: Needs review » Closed (duplicate)

webcheick has a patch in ready to commit which fixes this.