1 views_handler_field_node_new_comments.inc views_handler_field_node_new_comments::init(&$view, &$options)

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

core/modules/comment/views/views_handler_field_node_new_comments.inc, line 14
Definition of views_handler_field_node_new_comments.

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']);
  }
}