function commons_reputation_views_pre_view in Drupal Commons 6.2
Implementation of hook_views_pre_view()
File
- modules/
features/ commons_reputation/ commons_reputation.module, line 8
Code
function commons_reputation_views_pre_view(&$view, &$display_id, &$args) {
switch ($view->name) {
case 'most_active_users':
if (user_access('view userpoints')) {
$view->display_handler
->override_option('footer', l(t('View all users'), 'userpoints'));
}
break;
}
}