Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
db_select condition use the 'IN' operator as default if value is an array, but for ctools defaults the default operator is always '='.
So for example if I try to load an object using
ctools_export_load_object('articles', 'conditions', array('title' => array('hello', 'world')));
all articles in the database will use the condition "title IN ('foo', 'bar')", but articles that are in code will use "title = array('foo', 'bar')".
Comment | File | Size | Author |
---|---|---|---|
#1 | conditions_in_operator-1302520-1.patch | 759 bytes | logaritmisk |
Comments
Comment #1
logaritmisk CreditAttribution: logaritmisk commentedComment #2
merlinofchaos CreditAttribution: merlinofchaos commentedCommitted. Thanks!