function layout_paragraphs_preprocess_radios in Layout Paragraphs 1.0.x
Same name and namespace in other branches
- 2.0.x layout_paragraphs.module \layout_paragraphs_preprocess_radios()
Implements hook_prepreprocess_radios().
Add wrapper class for layout selection.
File
- ./
layout_paragraphs.module, line 58 - Contains layout_paragraphs.module.
Code
function layout_paragraphs_preprocess_radios(&$variables) {
if (isset($variables['element']['#wrapper_attributes'])) {
$variables['attributes'] += $variables['element']['#wrapper_attributes'];
}
}