function _boost_inject_code in Boost 6
Inject code into document.
Parameters
$document: string containing html document.
$html_code: string containing html snippet.
$point: string of the insertion point
1 call to _boost_inject_code()
- boost_cache_set in ./
boost.module - Replaces/Sets the cached contents of the specified page, if stale.
File
- ./
boost.module, line 5413 - Provides static file caching for Drupal text output. Pages, Feeds, ect...
Code
function _boost_inject_code($document, $html_code, $point = '</body>') {
return str_replace($point, $html_code . $point, $document);
}