function labjs_rewrite_js in LABjs 6
Rewrites <script> tag to use LABjs.
Parameters
$javascript: String including <script> tag
Return value
Input string is modified and returned
1 call to labjs_rewrite_js()
- labjs_preprocess_page in ./
labjs.module - Implements hook_preprocess_page().
File
- ./
labjs.module, line 144 - LABjs module
Code
function labjs_rewrite_js(&$javascript) {
$javascript = preg_replace_callback('#<script .+?</script>\\s*#s', '_labjs_rewrite_js', $javascript);
return $javascript;
}