Skip to content

Instantly share code, notes, and snippets.

@jeremycaldwell
Created August 30, 2013 22:50
Show Gist options
  • Save jeremycaldwell/6395050 to your computer and use it in GitHub Desktop.
Save jeremycaldwell/6395050 to your computer and use it in GitHub Desktop.
Drupal - Views: Fields
<?php
print print_r(array_keys($fields), 1);
// Or if you have the developer module installed
dsm(array_keys($fields));
?>
<?php if (isset($fields['field_employee_portrait']->content)): ?>
<div class="author-photo">
<?php print $fields['field_employee_portrait']->content; ?>
</div>
<?php endif; ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment