You are here

function heartbeat_preprocess_views_view in Heartbeat 7

Preprocess the primary theme implementation for a view.

File

./heartbeat.module, line 787
Module file for heartbeat activity. Basic hook implementations and helper functions will be found here.

Code

function heartbeat_preprocess_views_view(&$vars) {
  $view = $vars['view'];
  if ($view->base_table == 'heartbeat_activity') {
    $vars['classes_array'][] = 'heartbeat-stream';
    $vars['classes_array'][] = 'heartbeat-messages-wrapper';
    $vars['classes_array'][] = 'heartbeat-stream-viewsactivity';
  }
}