You are here

function views_handler_field_node_new_comments::init in Views (for Drupal 7) 6.3

Same name and namespace in other branches
  1. 6.2 modules/comment/views_handler_field_node_new_comments.inc \views_handler_field_node_new_comments::init()
  2. 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 9

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