function devel_query_debug_alter
Same name in other branches
- 4.x devel.module \devel_query_debug_alter()
- 5.x devel.module \devel_query_debug_alter()
Implements hook_query_TAG_alter() for the devel tag.
Makes debugging EntityFieldQuery much easier.
Example usage:
$q = new EntityFieldQuery();
$q->entityCondition('entity_type', 'node')
->addTag('debug')
->execute();
Parameters
QueryAlterableInterface $query:
File
-
./
devel.module, line 2312
Code
function devel_query_debug_alter(QueryAlterableInterface $query) {
if (!$query->hasTag('debug-semaphore')) {
$query->addTag('debug-semaphore');
dpq($query);
}
}