function social_profile_preprocess_fieldset in Open Social 8.9
Same name and namespace in other branches
- 8.3 modules/social_features/social_profile/social_profile.module \social_profile_preprocess_fieldset()
- 8.4 modules/social_features/social_profile/social_profile.module \social_profile_preprocess_fieldset()
- 8.5 modules/social_features/social_profile/social_profile.module \social_profile_preprocess_fieldset()
- 8.6 modules/social_features/social_profile/social_profile.module \social_profile_preprocess_fieldset()
- 8.7 modules/social_features/social_profile/social_profile.module \social_profile_preprocess_fieldset()
- 8.8 modules/social_features/social_profile/social_profile.module \social_profile_preprocess_fieldset()
- 10.3.x modules/social_features/social_profile/social_profile.module \social_profile_preprocess_fieldset()
- 10.0.x modules/social_features/social_profile/social_profile.module \social_profile_preprocess_fieldset()
- 10.1.x modules/social_features/social_profile/social_profile.module \social_profile_preprocess_fieldset()
- 10.2.x modules/social_features/social_profile/social_profile.module \social_profile_preprocess_fieldset()
Implements hook_preprocess_fieldset().
File
- modules/
social_features/ social_profile/ social_profile.module, line 270 - The Social profile module.
Code
function social_profile_preprocess_fieldset(&$variables) {
// Style our checkboxes as nested checkboxes.
if (isset($variables['element']['#name']) && $variables['element']['#name'] === 'profile_tag') {
$variables['attributes']['class'][] = 'checkboxes--nested';
}
}