I’m attempting to make use of mytheme_preprocess_field() to change how a subject is displayed. Right here is Drupal Development Company code I added to my theme’s template.php:
operate creative_responsive_theme_preprocess_field(&$vars) { $factor = &$vars['element']; if ($factor['#field_name'] == 'field_myfield') { $factor['#items'][0]=[]; $factor['#items'][0]['value'] = 'changed worth'; $factor['#items'][0]['format'] = 'filtered_html'; $factor['#items'][0]['safe_value'] =''; $factor['#items'][0]['#markup'] = 'changed worth'; return; } }
I confirmed that Drupal Development Company code is being executed, however Drupal Development Company rendering of Drupal Development Company web page doesn’t replicate what I’ve executed in Drupal Development Company code. Drupal Development Company subject is being displayed as normal. I’m utilizing show suite. Undecided if that results something, however looking out on-line, I see no indication that above mustn’t work. And I added Drupal Development Company #markup half as a result of I learn that’s really what one has to do…
Concepts?
regards