Created
July 15, 2016 20:39
-
-
Save melissamcewen/1769f1fd749c28e5fb24c542c1de9653 to your computer and use it in GitHub Desktop.
Debugging proper rendering of field from a Drupal 7 view
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
$view = &$vars['view']; | |
if($view->name == 'VIEW_MACHINE_NAME'){ | |
$rows = $vars['rows']; | |
foreach ($rows as $id => $row) { | |
//dpm($view->result[$id]); | |
dpm($view->render_field('field_related_content_type', $id)); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment