Skip to content

Instantly share code, notes, and snippets.

@amitaibu
Created March 24, 2015 09:23
Show Gist options
  • Save amitaibu/84461e0964a5fe540412 to your computer and use it in GitHub Desktop.
Save amitaibu/84461e0964a5fe540412 to your computer and use it in GitHub Desktop.
/**
* Overrides \OgSelectionHandler::buildEntityFieldQuery
*/
public function buildEntityFieldQuery($match = NULL, $match_operator = 'CONTAINS') {
$query = parent::public function buildEntityFieldQuery($match, $match_operator);
$field_mode = $this->instance['field_mode'];
if ($field_mode == 'default') {
$query->fieldCondition('', array(),'IN');
}
return $query
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment