You are here

function views_flag_refresh_plugin_display_extender::options_submit in Views Flag Refresh 7

Inserts the code into the view display.

Overrides views_plugin_display_extender::options_submit

File

./views_flag_refresh_plugin_display_extender.inc, line 80
Views field view field handler class.

Class

views_flag_refresh_plugin_display_extender
This plugin adds additional settings to the Views AJAX options.

Code

function options_submit(&$form, &$form_state) {
  switch ($form_state['section']) {
    case 'views_flag_refresh':
      $this->display
        ->set_option('use_ajax_flags', $form_state['values']['use_ajax_flags']);
      $this->display
        ->set_option('use_ajax_flags_noscrolltop', $form_state['values']['use_ajax_flags_noscrolltop']);
      $this->display
        ->set_option('use_ajax_flags_widget', $form_state['values']['use_ajax_flags_widget']);
      break;
  }
}