function commons_documents_views_pre_render in Drupal Commons 7.3
Implements hook_views_pre_render().
File
- modules/
commons/ commons_documents/ commons_documents.module, line 65
Code
function commons_documents_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_documents') {
$view->display_handler->handlers['empty']['area']->options['content'] = t('No documents have been created.');
}
}