You are here

function theme_scanner_replace_item in Search and Replace Scanner 6

Same name and namespace in other branches
  1. 5.2 scanner.module \theme_scanner_replace_item()
  2. 7 scanner.theme.inc \theme_scanner_replace_item()
1 theme call to theme_scanner_replace_item()
theme_scanner_replace_results in ./scanner.module

File

./scanner.module, line 1228
Search and Replace Scanner - works on all nodes text content.

Code

function theme_scanner_replace_item($item) {
  $item['count'] = $item['count'] > 0 ? $item['count'] : 'One or more';
  $output .= '<li class="scanner-result">';
  $output .= '<span class="scanner-title">' . l($item['title'], 'node/' . $item['nid']) . '</span><br />';
  $output .= '<span class="scanner-info">[' . $item['count'] . ' replacements in ' . $item['type'] . ' ' . $item['field'] . ' field]</span>';
  $output .= '</li>';
  return $output;
}