function views_lazy_load_plugin_display_extender::options_form in Views Lazy Load 7
Same name and namespace in other branches
- 8 includes/views/views_lazy_load_plugin_display_extender.inc \views_lazy_load_plugin_display_extender::options_form()
Provide a form to edit options for this plugin.
Overrides views_plugin_display_extender::options_form
File
- includes/
views/ views_lazy_load_plugin_display_extender.inc, line 60 - 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_form(&$form, &$form_state) {
if ($form_state['section'] == 'views_lazy_load') {
$form['#title'] .= t('Enable Views Lazy Load');
$form['views_lazy_load_enabled'] = array(
'#title' => t('Enabled'),
'#description' => t('Enabling Views Lazy Load will cause the view to be loaded via AJAX after the initial page load. "Use AJAX" will be enabled for you.'),
'#type' => 'checkbox',
'#default_value' => $this
->isEnabled(),
);
}
}