function commons_groups_views_pre_render in Drupal Commons 7.3
Implements hook_views_pre_render().
File
- modules/
commons/ commons_groups/ commons_groups.module, line 1183
Code
function commons_groups_views_pre_render(&$view) {
// Improve the browsing widget empty text when displayed outside of a group.
// TODO: Enable og_context and check group context instead of looking for an
// empty first argument.
if (empty($view->args[0]) && $view->name == 'commons_bw_all') {
$view->display_handler->handlers['empty']['area']->options['content'] = t('Nobody has posted yet.');
}
}