You are here

function _views_row_insert_wrap_row in Views Row Insert 7

Helper function, adds classes to the current row.

Parameters

string $row: String value containing current row element.

array $classes: Array of classes.

Return value

string Returns current row wrapped with classes.

1 call to _views_row_insert_wrap_row()
template_preprocess_views_row_insert in ./views_row_insert.module
Implements hook_preprocess_HOOK() for theme_views_row_insert().

File

./views_row_insert.module, line 89
Views Row Insert module.

Code

function _views_row_insert_wrap_row($row, array $classes) {
  if (count($classes) > 0) {
    $class = implode(" ", $classes);
    $row = '<div class="' . $class . '">' . $row . '</div>';
  }
  return $row;
}