0

I've noticed in preprocess hooks that sometimes a field's value is found at - for example:

$vars['field_caption'][0]['value']
and sometimes it's at
$vars['field_caption']['und'][0]['value']

Which makes it awkward to handle.

What situations result in the 'und' (LANGUAGE_NONE) sub-array? I am not in a multilingual context.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.