function theme_scanner_replace_item in Search and Replace Scanner 7
Same name and namespace in other branches
- 5.2 scanner.module \theme_scanner_replace_item()
- 6 scanner.module \theme_scanner_replace_item()
Theme each replace result hit.
1 theme call to theme_scanner_replace_item()
- theme_scanner_replace_results in ./
scanner.theme.inc - Theme the replace results.
File
- ./
scanner.theme.inc, line 75 - Theme callbacks for the scanner module.
Code
function theme_scanner_replace_item($variables) {
$output = '';
$item = $variables['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_label'] . ' field]</span>';
$output .= '</li>';
return $output;
}