function sharerich_libraries_preload in Sharerich 7.3
Same name and namespace in other branches
- 7.2 sharerich.module \sharerich_libraries_preload()
Use a callback function to move any JavaScript to the footer.
1 string reference to 'sharerich_libraries_preload'
- sharerich_libraries_info in ./
sharerich.module - Implements hook_libraries_info().
File
- ./
sharerich.module, line 87
Code
function sharerich_libraries_preload(&$library) {
foreach ($library['files']['js'] as $file => $options) {
$library['files']['js'][$file]['scope'] = 'footer';
}
}