Quantcast
Viewing all articles
Browse latest Browse all 10

Altering Individual Radio or Checkbox Items in Drupal 7 via FAPI

This guide will focus on the radios type, but it can be use for checkboxes in the exact same way.

TL;DR: Put an #after_build on form checkboxes or radios (or on the form element itself). Within the after_build, the items will be normal radio or checkbox renderable elements.

Image may be NSFW.
Clik here to view.

Viewing all articles
Browse latest Browse all 10

Trending Articles