function draggableviews_handler::init in DraggableViews 7
Same name and namespace in other branches
- 6.3 implementations/draggableviews_handler.inc \draggableviews_handler::init()
2 calls to draggableviews_handler::init()
- draggableviews_handler_fieldapi::init in implementations/
draggableviews_handler_fieldapi.inc - draggableviews_handler_native::init in implementations/
draggableviews_handler_native.inc
2 methods override draggableviews_handler::init()
- draggableviews_handler_fieldapi::init in implementations/
draggableviews_handler_fieldapi.inc - draggableviews_handler_native::init in implementations/
draggableviews_handler_native.inc
File
- implementations/
draggableviews_handler.inc, line 14 - The parent class of all draggableviews handlers.
Class
Code
function init($field_name, &$view) {
$this->field_name = $field_name;
$this->view = $view;
$this->pager = $view->query->pager;
if ($field_name == $view->style_plugin->options['tabledrag_hierarchy']['field']) {
$this->type = 'hierarchy';
}
else {
$this->type = 'order';
}
}