You are here

public function SiteBannerContextReactionChangeBannerTextColor::execute in Site Banner 7

Output banner text colour for active contexts.

File

./site_banner_context_reaction_functions.inc, line 235

Class

SiteBannerContextReactionChangeBannerTextColor
Handle changing the site banner text color reaction.

Code

public function execute(&$text_color_as_text) {
  $contexts = context_active_contexts();
  foreach ($contexts as $context) {
    if (!empty($context->reactions['change_banner_text_color'])) {
      $text_color_as_text = site_banner_get_existing_text_color($context);
    }
  }
}