You are here

function DrupalDiffFormatter::contextLine in Diff 5.2

Same name and namespace in other branches
  1. 6.2 DiffEngine.php \DrupalDiffFormatter::contextLine()
  2. 6 DiffEngine.php \DrupalDiffFormatter::contextLine()
  3. 7.3 DiffEngine.php \DrupalDiffFormatter::contextLine()
  4. 7.2 DiffEngine.php \DrupalDiffFormatter::contextLine()

Note: you should HTML-escape parameter before calling this.

1 call to DrupalDiffFormatter::contextLine()
DrupalDiffFormatter::_context in ./DiffEngine.php

File

./DiffEngine.php, line 1107

Class

DrupalDiffFormatter
Diff formatter which uses Drupal theme functions. @private @subpackage DifferenceEngine

Code

function contextLine($line) {
  return array(
    ' ',
    array(
      'data' => theme('diff_content_line', $line),
      'class' => 'diff-context',
    ),
  );
}