You are here

function bxslider_field_ui_display_overview_form_submit in BxSlider 7

Form submit function.

1 string reference to 'bxslider_field_ui_display_overview_form_submit'
bxslider_form_field_ui_display_overview_form_alter in ./bxslider.module
Implements hook_form_FORM_ID_alter().

File

./bxslider.module, line 1048
Fields integration with BxSlider.

Code

function bxslider_field_ui_display_overview_form_submit($form, &$form_state) {
  foreach ($form_state['values']['fields'] as $did => $display) {
    if (isset($display['type']) && ($display['type'] == 'bxslider' || $display['type'] == 'bxslider_ths')) {
      if (isset($form_state['formatter_settings']) && isset($form_state['formatter_settings'][$did]) && $form_state['formatter_settings'][$did]['colorbox']['enable'] && module_exists('colorbox')) {

        // Set option "Enable Colorbox load" in Colorbox settings.
        variable_set('colorbox_load', 1);
      }
    }
  }
}