You are here

function social_profile_preprocess_fieldset in Open Social 10.2.x

Same name and namespace in other branches
  1. 8.9 modules/social_features/social_profile/social_profile.module \social_profile_preprocess_fieldset()
  2. 8.3 modules/social_features/social_profile/social_profile.module \social_profile_preprocess_fieldset()
  3. 8.4 modules/social_features/social_profile/social_profile.module \social_profile_preprocess_fieldset()
  4. 8.5 modules/social_features/social_profile/social_profile.module \social_profile_preprocess_fieldset()
  5. 8.6 modules/social_features/social_profile/social_profile.module \social_profile_preprocess_fieldset()
  6. 8.7 modules/social_features/social_profile/social_profile.module \social_profile_preprocess_fieldset()
  7. 8.8 modules/social_features/social_profile/social_profile.module \social_profile_preprocess_fieldset()
  8. 10.3.x modules/social_features/social_profile/social_profile.module \social_profile_preprocess_fieldset()
  9. 10.0.x modules/social_features/social_profile/social_profile.module \social_profile_preprocess_fieldset()
  10. 10.1.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 254
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';
  }
}