You are here

function template_preprocess_views_view_row_activity in Activity 6

Template handler for theme_views_view_row_activity().

File

./activity.views.inc, line 374

Code

function template_preprocess_views_view_row_activity(&$vars) {
  $options = $vars['options'];
  $vars['activity'] = '';

  // Make sure var is defined.
  $aid = $vars['row']->aid;
  if (!is_numeric($aid)) {
    return;
  }
  $activity = activity_load($aid);
  if (empty($activity)) {
    return;
  }
  $vars['row']->activity_message = activity_token_replace($activity);
}