You are here

function hook_ds_classes_alter in Display Suite 7.2

Same name and namespace in other branches
  1. 8.4 ds.api.php \hook_ds_classes_alter()
  2. 8.2 ds.api.php \hook_ds_classes_alter()
  3. 8.3 ds.api.php \hook_ds_classes_alter()

Allow modules to provide additional classes for regions and layouts.

1 invocation of hook_ds_classes_alter()
_ds_classes in includes/ds.field_ui.inc
Utility function to return CSS classes.

File

./ds.api.php, line 598
Hooks provided by Display Suite module.

Code

function hook_ds_classes_alter(&$classes, $name) {
  if ('ds_classes_regions' === $name) {
    $classes['css-class-name'] = t('Custom Styling');
  }
}