function views_php_plugin_cache::options_form in Views PHP 7.2
Same name and namespace in other branches
- 6 plugins/views/views_php_plugin_cache.inc \views_php_plugin_cache::options_form()
- 7 plugins/views/views_php_plugin_cache.inc \views_php_plugin_cache::options_form()
Implements views_plugin#options_form().
Overrides views_plugin::options_form
File
- plugins/
views/ views_php_plugin_cache.inc, line 31
Class
- views_php_plugin_cache
- Caching plugin that provides cache control based on custom PHP code.
Code
function options_form(&$form, &$form_state) {
parent::options_form($form, $form_state);
$form += views_php_form_element($this, FALSE, array(
'php_cache_results',
t('Result cache code'),
t('The code must return TRUE if the cache is still fresh, FALSE otherwise.'),
FALSE,
), array(
'$view',
'$plugin',
'$cache',
));
$form += views_php_form_element($this, FALSE, array(
'php_cache_output',
t('Output cache code'),
t('The code must return TRUE if the cache is still fresh, FALSE otherwise.'),
FALSE,
), array(
'$view',
'$plugin',
'$cache',
));
}