You are here

function site_banner_get_text_color_from_form in Site Banner 7

Searches the form response to determine the text color to be saved.

Parameters

array $form_state: the object containing user settings

Return value

string the text color as HTML hex color code

1 call to site_banner_get_text_color_from_form()
site_banner_admin_settings_form_submit in ./site_banner.admin.inc
Implements hook_form_FORM_ID_submit() for node_type_form().

File

./site_banner.admin.inc, line 309

Code

function site_banner_get_text_color_from_form($form_state) {
  return site_banner_get_text_color_code($form_state['values']['site_banner_text_color_form'], $form_state['values']['site_banner_text_custom_color_form'], $form_state['values']['site_banner_text_color_select']);
}