You are here

function views_content_cache_key_node_only::options_form in Views content cache 6.2

Same name and namespace in other branches
  1. 7.3 plugins/views_content_cache/node_only.inc \views_content_cache_key_node_only::options_form()

Optionally provides a option form for the user to use this segment.

Typical uses of this will include returning a checkboxes FormAPI element that will allow the user to indicate which keys in the cache segement they are interested in for the view that they are building. Eg. Checkboxes for each node type or each organic group.

Parameters

$value: The default value that has been previously set.

$handler: The handler that this options for is for.

Return value

A FormAPI element that will appear as part of the views content cache options form when building a view.

Overrides views_content_cache_key::options_form

File

plugins/node_only.inc, line 4

Class

views_content_cache_key_node_only

Code

function options_form($value) {
  return array(
    '#title' => t('Node only'),
    '#description' => t('Allows the node segment to be refined to only include main operations create/update/delete. Be careful about combing with other node related segments.'),
    '#type' => 'checkboxes',
    '#options' => array(
      'node_changed' => t('Nodes updated/created/deleted'),
    ),
    '#default_value' => $value,
  );
}