You are here

function views_lazy_load_plugin_display_extender::options_submit in Views Lazy Load 7

Same name and namespace in other branches
  1. 8 includes/views/views_lazy_load_plugin_display_extender.inc \views_lazy_load_plugin_display_extender::options_submit()

Handle any special handling on the validate form.

Overrides views_plugin_display_extender::options_submit

File

includes/views/views_lazy_load_plugin_display_extender.inc, line 87
A display extender plugin for lazy loading a view.

Class

views_lazy_load_plugin_display_extender
@file A display extender plugin for lazy loading a view.

Code

function options_submit(&$form, &$form_state) {
  if ($form_state['section'] == 'views_lazy_load') {
    $views_lazy_enabled = $form_state['values']['views_lazy_load_enabled'];
    $this->display
      ->set_option('views_lazy_load_enabled', $views_lazy_enabled);

    // We enable use AJAX as that is required for VLL.
    $this->display
      ->set_option('use_ajax', TRUE);
  }
}