function tripal_feature_preprocess_tripal_feature_proteins
2.x tripal_feature.theme.inc | tripal_feature_preprocess_tripal_feature_proteins(&$variables) |
3.x tripal_feature.theme.inc | tripal_feature_preprocess_tripal_feature_proteins(&$variables) |
1.x tripal_feature.module | tripal_feature_preprocess_tripal_feature_proteins(&$variables) |
File
- legacy/
tripal_feature/ theme/ tripal_feature.theme.inc, line 395
Code
function tripal_feature_preprocess_tripal_feature_proteins(&$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);
}
}