8
I am not a master at regexp, so forgive if this not working, but it is worth a try!
The function should look like this:
echo "function myCustomSaveContent(element_id, html, body) {";
echo "html = html.replace(/modules/system/,'');";
echo "return html;";
echo "}";
echo 'save_callback : "myCustomSaveContent",';
Just place it under this code:
if ($moduleConfig['tinyedrelurls'] == '1') {
echo 'setupcontent_callback : "plugin_regexrep_setup",';
echo 'save_callback : "plugin_regexrep_save",';
}
Hope this works for you!