Add gin-layer-wrapper class to comment fields.
This commit is contained in:
parent
20729c5389
commit
be44ea9a73
|
@ -189,6 +189,15 @@ function farm_ui_theme_preprocess_block(&$variables) {
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Implements hook_preprocess_HOOK().
|
||||
*/
|
||||
function farm_ui_theme_preprocess_field(&$variables) {
|
||||
if ($variables['field_type'] == 'comment') {
|
||||
$variables['attributes']['class'][] = 'gin-layer-wrapper';
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Implements hook_preprocess_HOOK().
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue