You are here

function DrupalDiffFormatter::addedLine in Diff 7.3

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

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

2 calls to DrupalDiffFormatter::addedLine()
DrupalDiffFormatter::_added in ./DiffEngine.php
DrupalDiffFormatter::_changed in ./DiffEngine.php

File

./DiffEngine.php, line 1146
A PHP diff engine for phpwiki. (Taken from phpwiki-1.3.3)

Class

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

Code

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