1 views_plugin_query_default.inc | views_plugin_query_default::add_signature(&$view) |
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
- core/
modules/ views/ plugins/ views_plugin_query_default.inc, line 1511 - Defines the default query object.
Class
- views_plugin_query_default
- Object used to create a SELECT query.
Code
function add_signature(&$view) {
$view->query->add_field(NULL, "'" . $view->name . ':' . $view->current_display . "'", 'view_name');
}