function comment_perm_query_comment_perm_access_alter in Comment Permissions 8
Implements hook_query_TAG_alter().
File
- ./
comment_perm.module, line 73 - Control commenting permissions per comment type.
Code
function comment_perm_query_comment_perm_access_alter(Select $query) {
// See for more details in CommentSelection::buildEntityQuery().
$conditions =& $query
->conditions();
foreach ($conditions as $i => $condition) {
if (isset($condition['field']) && $condition['field'] == 'comment_field_data.status') {
unset($conditions[$i]);
}
}
}