You are here

function hosting_site_preprocess_views_view_table in Hostmaster (Aegir) 6

File

modules/hosting/site/hosting_site.module, line 778

Code

function hosting_site_preprocess_views_view_table(&$variables) {
  $view = $variables['view'];
  if ($view->plugin_name == 'hosting_site_list') {
    foreach ($view->result as $num => $result) {
      if (isset($result->hosting_site_status) && isset($result->hosting_site_verified)) {
        $variables['row_classes'][$num][] = _hosting_site_list_class($result->hosting_site_status, $result->hosting_site_verified);
      }
    }
  }
  $variables['class'] .= " hosting-table";
}