feedback.controller.inc 615 B

1234567891011121314151617181920212223
  1. <?php
  2. /**
  3. * @file
  4. * Entity controller class.
  5. */
  6. /**
  7. * Controller class for feedback entries.
  8. *
  9. * This extends the DrupalDefaultEntityController class, adding required
  10. * special handling for feedback objects.
  11. */
  12. class FeedbackController extends DrupalDefaultEntityController {
  13. protected function buildQuery($ids, $conditions = array(), $revision_id = FALSE) {
  14. $query = parent::buildQuery($ids, $conditions, $revision_id);
  15. // Specify an additional field from the user table.
  16. $query->innerJoin('users', 'u', 'base.uid = u.uid');
  17. $query->fields('u', array('name'));
  18. return $query;
  19. }
  20. }