/**
* Implements hook_views_pre_render().
*/
function hook_views_pre_render(&$view) {
if ($view->name == 'myview') {
foreach ($view->result as &$row) {
$row->field_myfield[0]['rendered']['#markup'] = $row->field_myfield[0]['rendered']['#markup'] ? t('Yes') : t('No');
}
}
}
/**
* Preprocess vars for views-view-field.tpl.php.
*/
function hook_preprocess_views_view_field(&$vars) {
if ($vars['view']->name == 'myview' && $vars['field']->options['id'] == 'field_myfield') {
$vars['output'] = $vars['output'] ? t('Yes') : t('No');
$vars['field']->last_render = $vars['output'];
}
}