You are here

function _statspro_get_array_as_fixed_space_fields_line in Statistics Pro 6.2

1 call to _statspro_get_array_as_fixed_space_fields_line()
statspro_get_array_as_fixed_space_fields in ./statspro.drush.inc

File

./statspro.drush.inc, line 121
Drush include file for statuspro

Code

function _statspro_get_array_as_fixed_space_fields_line($widths, $row) {
  $line = '';
  $index = 0;
  foreach ($row as $cell) {
    $line .= '|' . $cell . str_repeat(' ', $widths[$index] - drupal_strlen($cell));
    $index++;
  }
  if ($line) {
    $line .= '|';
  }
  return $line;
}