uc_order_handler_field_order_actions.inc 473 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. /**
  3. * @file
  4. * Views handler: Return actions for order id.
  5. */
  6. /**
  7. * Returns actions for an order.
  8. */
  9. class uc_order_handler_field_order_actions extends views_handler_field {
  10. /**
  11. * Overrides views_handler_field::render().
  12. */
  13. function render($values) {
  14. $order = uc_order_load($values->order_id);
  15. return uc_order_actions($order, TRUE);
  16. }
  17. /**
  18. * Overrides views_handler_field::query().
  19. */
  20. function query() {
  21. // Do nothing.
  22. }
  23. }