function text_scanner_preg_match_all in Search and Replace Scanner 7
Implements hook_scanner_preg_match_all().
File
- ./
scanner.module, line 1435 - Search and Replace Scanner - works on all nodes text content.
Code
function text_scanner_preg_match_all(&$matches, $regexstr, $row) {
// Performed on behalf of text.module.
if (!empty($row->summary)) {
return preg_match_all($regexstr, $row->summary, $matches, PREG_OFFSET_CAPTURE);
}
return 0;
}