Form Child Theme
Categories
Component ID
1073390
Component name
Form Child Theme
Component type
module
Maintenance status
Development status
Component security advisory coverage
covered
Downloads
1770
Component created
Component changed
Component body
Form Child Theme is a helper module that allows you to theme the expanded elements of the checkboxes and radios elements within forms simply by adding '#child_theme' as a variable when declaring the element within a form.
For example:
$form['checkboxes'] = array(
'#type' => 'checkboxes',
'#title' => t('My Checkboxes'),
'#options' => $my_options,
'#child_theme' => 'checkboxes_child_theme',
);
This means that once the checkboxes are expanded out to each checkbox element they will inherit '#child_theme' to '#theme' => 'checkboxes_child_theme'.
This module works for Drupal versions 6 and 7.
