function asset_preprocess_entity in Asset 7
Process variables for entity.tpl.php.
File
- ./
asset.module, line 689 - Asset module.
Code
function asset_preprocess_entity(&$vars) {
if (!empty($vars['asset'])) {
if ($vars['asset']->type == 'audio' && !empty($vars['asset']->in_editor)) {
if (isset($vars['content']['field_asset_audio'])) {
hide($vars['content']['field_asset_audio']);
}
}
}
}