function social_profile_preprocess_fieldset in Open Social 8.8
Same name and namespace in other branches
- 8.9 modules/social_features/social_profile/social_profile.module \social_profile_preprocess_fieldset()
- 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()
- 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 266 - 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';
}
}