-
-
Save brankoajzele/ada71bf62362bdad6930 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
foreach ($items as $delta => $item) { | |
// suppress all children so this field is not rendered | |
if ($field['type'] == 'list_boolean') { | |
$classes_array[] = drupal_html_class($field['settings']['allowed_values'][$item['value']]); | |
} | |
elseif ($field['type'] == 'taxonomy_term_reference') { | |
$tids[] = $item['tid']; //store the terms ids and just do taxonomy_term_load_multiple once at the end | |
} | |
else { | |
$classes_array[] = drupal_html_class($item['value']); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment