function boost_module_implements in Boost 7
Alters module_implements to set a hook to fire at the end.
Parameters
$hook: Name of hook.
$name: Module name to shift to the end of the array.
Return value
array
3 calls to boost_module_implements()
- boost_get_storage_types in ./
boost.module - Get the storage types for the boost cache.
- boost_is_cacheable in ./
boost.module - Determines whether a given url can be cached or not by boost.
- _boost_get_menu_router in ./
boost.module - Gets menu router contex.
File
- ./
boost.module, line 1019 - Caches generated output as a static file to be served directly from the webserver.
Code
function boost_module_implements($hook, $name) {
$modules = module_implements($hook);
// Make $names built in hook the last one.
$pos = array_search($name, $modules);
if ($pos !== FALSE) {
$temp = $modules[$pos];
unset($modules[$pos]);
$modules[] = $temp;
}
return $modules;
}