function _nopremium_field_extra_fields_pre_render in Node Option Premium 7
1 string reference to '_nopremium_field_extra_fields_pre_render'
- nopremium_alter_node in ./
nopremium.module - Alter a node replacing full content by nopremium content.
File
- ./
nopremium.module, line 399 - Written by Henri MEDOT <henri.medot[AT]absyx[DOT]fr> http://www.absyx.fr
Code
function _nopremium_field_extra_fields_pre_render($elements) {
if (isset($elements['#view_mode'])) {
$view_mode = $elements['#view_mode'];
$elements['#view_mode'] = 'teaser';
$elements = _field_extra_fields_pre_render($elements);
$elements['#view_mode'] = $view_mode;
}
return $elements;
}