Skip to content

Instantly share code, notes, and snippets.

@ewillhite
Last active December 22, 2015 20:19
Show Gist options
  • Save ewillhite/6525839 to your computer and use it in GitHub Desktop.
Save ewillhite/6525839 to your computer and use it in GitHub Desktop.
<?php
// General Node Preprocess
function wyckwyre_preprocess_node(&$variables) {
$node = $variables['node'];
// Project Node
if ($node->type == 'product') {
$fid = $node->field_section['und'][0]['value'];
$section = field_collection_item_load($fid);
dsm($section);
}
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment