function theme_scanner_replace_results in Search and Replace Scanner 5.2
Same name and namespace in other branches
- 6 scanner.module \theme_scanner_replace_results()
- 7 scanner.theme.inc \theme_scanner_replace_results()
1 theme call to theme_scanner_replace_results()
- scanner_execute in ./
scanner.module - Handles the actual search and replace.
File
- ./
scanner.module, line 1167 - Search and Replace Scanner - works on all nodes text content.
Code
function theme_scanner_replace_results($results) {
if (is_array($results)) {
drupal_set_message('Replaced items in ' . count($results) . ' fields. <a href="#results">See below</a> for details.');
$output = '<p>Replaced items in ' . count($results) . ' fields:</p>';
$output .= '<ol class="scanner-results scanner-replace-results">';
foreach ($results as $item) {
$output .= theme('scanner_replace_item', $item);
}
$output .= '</ol>';
//TO DO: use pager to split up results
}
else {
drupal_set_message('Sorry, we found 0 matches.');
}
return $output;
}