return $code;
}
+// Expression call-back function for validator links
+function doExpressionValidatorLinks ($data) {
+ // Default is nothing
+ $replacer = '';
+
+ // Get the code from data array for replacement/pipe-through
+ $code = $data['code'];
+
+ // Should we generally include validator links?
+ if ((isExtensionInstalled('validator')) && (getConfig('enable_validator') == 'Y') && (!in_array(getModule(), array('admin', 'login')))) {
+ // Load the validator template
+ $replacer = escapeQuotes(loadTemplate('validator_links', true));
+ } // END - if
+
+ // Replace the code
+ $code = str_replace($data['matches'][0][$data['key']], $replacer, $code);
+
+ // Return the (maybe) replaced code
+ return $code;
+}
+
// [EOF]
?>