public function views_handler_field_node_new_comments::init in Views (for Drupal 7) 7.3
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()
- 6.2 modules/comment/views_handler_field_node_new_comments.inc \views_handler_field_node_new_comments::init()
Init the handler with necessary data.
Parameters
view $view: The $view object this handler is attached to.
array $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 18 - 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
public 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']);
}
}