function views_handler_filter_block_cache::value_form in Views Hacks 7
Same name and namespace in other branches
- 6 views_block/handlers/views_handler_filter_block_cache.inc \views_handler_filter_block_cache::value_form()
Options form subform for setting options.
This should be overridden by all child classes and it must define $form['value'].
Overrides views_handler_filter::value_form
See also
options_form()
File
- views_block/
handlers/ views_handler_filter_block_cache.inc, line 16
Class
- views_handler_filter_block_cache
- Filter based on block cache settings.
Code
function value_form(&$form, &$form_state) {
$options = array(
DRUPAL_NO_CACHE => 'DRUPAL_NO_CACHE',
DRUPAL_CACHE_PER_ROLE => 'DRUPAL_CACHE_PER_ROLE',
DRUPAL_CACHE_PER_USER => 'DRUPAL_CACHE_PER_USER',
DRUPAL_CACHE_PER_PAGE => 'DRUPAL_CACHE_PER_PAGE',
DRUPAL_CACHE_GLOBAL => 'DRUPAL_CACHE_GLOBAL',
);
$form['value'] = array(
'#type' => 'checkboxes',
'#options' => $options,
);
}