function lazy_pane_lazy_cache_settings_form in Lazy Pane 7
Lazy pane cache settings form.
File
- plugins/
cache/ lazy.inc, line 103
Code
function lazy_pane_lazy_cache_settings_form($conf, $display, $pid) {
$form = array();
$form['load_strategy'] = array(
'#title' => t('Load this pane when'),
'#type' => 'select',
'#options' => array(
'page-loaded' => t('The page has loaded'),
'pane-visible' => t('The pane becomes visible'),
),
'#default_value' => $conf['load_strategy'],
'#description' => t('The "Pane becomes visible" loading strategy may not work always, as it depends on external factors to the module such as CSS positioning/display rules on the theme.'),
);
$form['show_spinner'] = array(
'#title' => t('Show Spinner'),
'#type' => 'checkbox',
'#default_value' => $conf['show_spinner'],
'#description' => t('If set the placeholder will show a loading spinner.'),
);
$form['load_text'] = array(
'#title' => t('Loading Text'),
'#type' => 'textfield',
'#default_value' => $conf['load_text'],
'#description' => t('If set, the inserted text will be shown on the placeholder while loading. This text is localizable and supports replacement patterns.'),
'#maxlength' => 256,
);
return $form;
}