function views_handler_field_node_new_comments::init in Views (for Drupal 7) 6.2
Same name and namespace in other branches
- 6.3 modules/comment/views_handler_field_node_new_comments.inc \views_handler_field_node_new_comments::init()
- 7.3 modules/comment/views_handler_field_node_new_comments.inc \views_handler_field_node_new_comments::init()
init the handler with necessary data.
Parameters
$view: The $view object this handler is attached to.
$options: The item from the database; the actual contents of this will vary based upon the type of handler.
Overrides views_handler_field::init
File
- modules/
comment/ views_handler_field_node_new_comments.inc, line 7
Class
- views_handler_field_node_new_comments
- Field handler to display the number of new comments
Code
function init(&$view, $options) {
parent::init($view, $options);
// translate an older setting:
if (!empty($options['no_empty'])) {
$this->options['hide_empty'] = TRUE;
unset($this->options['no_empty']);
}
}