You are here

public function SiteBannerContextReactionChangeBannerStatus::options_form in Site Banner 7

Admin panel for setting banner background color for selected contexts.

Overrides context_reaction::options_form

File

./site_banner_context_reaction_functions.inc, line 17

Class

SiteBannerContextReactionChangeBannerStatus
Handle enabling/disabling the site banner and debug mode.

Code

public function options_form($context) {
  $existing_status = site_banner_get_site_banner_status($context);
  $existing_debug_status = site_banner_get_site_banner_debug_status($context);
  return site_banner_generate_banner_status_form_elements($existing_status, $existing_debug_status);
}