function views_plugin_style_watchdog_table::query in Views Watchdog 6.3
Same name and namespace in other branches
- 6.2 views/plugins/views_plugin_style_watchdog_table.inc \views_plugin_style_watchdog_table::query()
- 7.3 views/plugins/views_plugin_style_watchdog_table.inc \views_plugin_style_watchdog_table::query()
File
- views/
plugins/ views_plugin_style_watchdog_table.inc, line 87 - Views style plugin for the views_watchdog module.
Class
- views_plugin_style_watchdog_table
- Provides style options for watchdog tables.
Code
function query() {
parent::query();
// Add base field
if (isset($this->options['relationship']) && isset($this->view->relationship[$this->options['relationship']])) {
$relationship = $this->view->relationship[$this->options['relationship']];
$this->field_alias = $this->view->query
->add_field($relationship->alias, $this->base_field);
}
else {
$this->field_alias = $this->view->query
->add_field($this->base_table, $this->base_field);
}
// Add base field as second sort parameter
$this->view->query
->add_orderby($this->base_table, $this->base_field, $this->order);
}