API page: http://api.drupal.org/api/drupal/developer%21topics%21forms_api_referenc...

$type['radios'] = array('#input' => TRUE, '#process' => array('expand_radios'));
In this example, the function expand_radios is called; the entire radios element is passed in as the argument. This function adds new elements of type radio to the existing radios element array, with keys and values corresponding to the processed element's #options.

We should give "form_process_radios" as example here instead.

Comments

jhodgdon’s picture

Project: Drupal core » Documentation
Version: 7.x-dev »
Component: documentation » API documentation files
Issue tags: +FAPI reference

This particular documentation file is in the Documentation project git repository. Thanks for reporting the issue!

jn2’s picture

Status: Active » Fixed

This is fixed for D7 and D8. It may take awhile to show up in the FAPI reference due to problems with the Grammar Parser module on api.d.o. (The last commit I made for the FAPI reference didn't appear on api.d.o for over 2 weeks.)

jhodgdon’s picture

Thanks jn2!

Automatically closed -- issue fixed for 2 weeks with no activity.