comment.inc in Views content cache 7.3
Provides the Views content cache comment plugin.
File
plugins/views_content_cache/comment.incView source
<?php
/**
* @file
* Provides the Views content cache comment plugin.
*/
class views_content_cache_key_comment extends views_content_cache_key {
function options_form($value, &$handler = NULL) {
return array(
'#title' => t('Comments'),
'#description' => t('Checks for new or updated comments'),
'#type' => 'checkboxes',
'#options' => array(
'changed' => t('New or updated comments'),
),
'#default_value' => $value,
);
}
function content_key($object, $object_type) {
if ($object_type === 'comment') {
return 'changed';
}
}
}
Classes
Name | Description |
---|---|
views_content_cache_key_comment | @file Provides the Views content cache comment plugin. |