function views_plugin_query_default::add_signature

Add a signature to the query, if such a thing is feasible.

This signature is something that can be used when perusing query logs to discern where particular queries might be coming from.

Parameters

view $view: The view which is executed.

Overrides views_plugin_query::add_signature

File

plugins/views_plugin_query_default.inc, line 1557

Class

views_plugin_query_default
Object used to create a SELECT query.

Code

public function add_signature(&$view) {
    $view->query
        ->add_field(NULL, "'" . $view->name . ':' . $view->current_display . "'", 'view_name');
}