function tripal_feature_preprocess_tripal_feature_relationships
2.x tripal_feature.theme.inc | tripal_feature_preprocess_tripal_feature_relationships(&$variables) |
3.x tripal_feature.theme.inc | tripal_feature_preprocess_tripal_feature_relationships(&$variables) |
1.x tripal_feature.module | tripal_feature_preprocess_tripal_feature_relationships(&$variables) |
Related topics
File
- tripal_feature/
theme/ tripal_feature.theme.inc, line 465
Code
function tripal_feature_preprocess_tripal_feature_relationships(&$variables) {
// we want to provide a new variable that contains the matched features.
$feature = $variables['node']->feature;
if (!property_exists($feature, 'all_relationships')) {
$feature->all_relationships = tripal_feature_get_feature_relationships($feature);
}
}