public function views_handler_sort_group_by_numeric::init in Views (for Drupal 7) 7.3
Same name and namespace in other branches
- 6.3 handlers/views_handler_sort_group_by_numeric.inc \views_handler_sort_group_by_numeric::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::init
File
- handlers/
views_handler_sort_group_by_numeric.inc, line 18 - Definition of views_handler_sort_group_by_numeric.
Class
- views_handler_sort_group_by_numeric
- Handler for GROUP BY on simple numeric fields.
Code
public function init(&$view, &$options) {
parent::init($view, $options);
// Initialize the original handler.
$this->handler = views_get_handler($options['table'], $options['field'], 'sort');
$this->handler
->init($view, $options);
}