function context_addassets_context_page_reaction in Context Add Assets 7
Same name and namespace in other branches
- 6 context_addassets.module \context_addassets_context_page_reaction()
Implements hook_context_page_reaction(). @todo Generalize this so it's more pluggable
File
- ./
context_addassets.module, line 259
Code
function context_addassets_context_page_reaction() {
// theme
if ($plugin = context_get_plugin('reaction', 'css')) {
$plugin
->execute();
}
if (module_exists('less')) {
if ($plugin = context_get_plugin('reaction', 'less')) {
$plugin
->execute();
}
}
if ($plugin = context_get_plugin('reaction', 'js')) {
$plugin
->execute();
}
// module
if ($plugin = context_get_plugin('reaction', 'css_module')) {
$plugin
->execute();
}
if ($plugin = context_get_plugin('reaction', 'js_module')) {
$plugin
->execute();
}
// file path
if ($plugin = context_get_plugin('reaction', 'css_path')) {
$plugin
->execute();
}
if ($plugin = context_get_plugin('reaction', 'js_path')) {
$plugin
->execute();
}
}