From a72aeab297f72a4fd43f60bf7180e690a158ac43 Mon Sep 17 00:00:00 2001 From: Jayaram Pai Date: Thu, 6 Mar 2014 15:13:06 +0530 Subject: addedd error class to filtered comments --- tbc_external_review.module | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'tbc_external_review.module') diff --git a/tbc_external_review.module b/tbc_external_review.module index 664dcc6..2e20994 100644 --- a/tbc_external_review.module +++ b/tbc_external_review.module @@ -838,11 +838,17 @@ ) ); $item = array( - "{$row->chapter}", - "{$row->example}", - "{$row->time}", - l("View", "", $options), + "data" => array( + "{$row->chapter}", + "{$row->example}", + "{$row->time}", + l("View", "", $options), + ), ); + if($row->sfu == 0 || $row->sum == 1 || $row->amt == 0) { + $error_class = array("class" => "error-comment"); + $item = array_merge($item, $error_class); + } array_push($rows, $item); } $page_content .= theme("table", $headers, $rows); -- cgit