public function SiteBannerContextReactionChangeBannerBackgroundColor::execute in Site Banner 7
Output banner background colour for active contexts.
File
- ./
site_banner_context_reaction_functions.inc, line 186
Class
- SiteBannerContextReactionChangeBannerBackgroundColor
- Handle changing the site banner background colors reaction.
Code
public function execute(&$background_color_as_text) {
$contexts = context_active_contexts();
foreach ($contexts as $context) {
if (!empty($context->reactions['change_banner_background_color'])) {
$background_color_as_text = site_banner_get_existing_background_color($context);
}
}
}