function _context_contrib_css_injector_response in Context 6
Getter response function for css injector
1 call to _context_contrib_css_injector_response()
- context_contrib_context_reaction in context_contrib/
context_contrib.module - Implementation of hook_context_reaction().
File
- context_contrib/
context_contrib.module, line 137
Code
function _context_contrib_css_injector_response($context) {
if (is_array($context->css_injector)) {
foreach ($context->css_injector as $crid) {
if ($css_rule = _css_injector_load_rule($crid)) {
drupal_add_css(file_create_path($css_rule['file_path']), 'module', $css_rule['media'], $css_rule['preprocess']);
}
}
}
else {
return;
}
}