sample files from a smithsonian project
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Implements hook_theme_suggestions_field_alter().
|
||||
*/
|
||||
function cdesai_emulsify_theme_suggestions_field_alter(array &$suggestions, array $variables) {
|
||||
$suggestions[] = 'field__' . $variables['element']['#entity_type'] . '__' . $variables['element']['#field_name'] . '__' . $variables['element']['#view_mode'];
|
||||
$suggestions[] = 'field__' . $variables['element']['#entity_type'] . '__' . $variables['element']['#field_name'] . '__' . $variables['element']['#bundle'] . '__' . $variables['element']['#view_mode'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Implements hook_preprocess_field__HOOK().
|
||||
*/
|
||||
function cdesai_emulsify_preprocess_field__paragraph__field_title__horizontal_tab(&$variables) {
|
||||
if (!empty($variables['element']['#id_prefix'])) {
|
||||
$variables['id_prefix'] = $variables['element']['#id_prefix'];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user