Advertisement
Guest User

Untitled

a guest
Dec 22nd, 2014
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. $query
  2. ->entityCondition('entity_type', 'message')
  3. ->addTag('no_field_weight');
  4.  
  5. /**
  6. * Implements hook_query_TAG_alter()
  7. *
  8. * Limits resultset to those courses that do not have a timestamp yet.
  9. */
  10. function os_classes_query_no_field_weight_alter(QueryAlterableInterface $query) {
  11. $query->leftJoin('field_data_field_date', 'fd', 'message.mid = fd.entity_id');
  12. $query->isNull('fd.field_date_value');
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement