views_boxes.views.inc 732 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. /**
  3. * @file
  4. */
  5. /**
  6. * Implements hook_views_data().
  7. *
  8. * Describes the two custom handlers to Views.
  9. */
  10. function views_boxes_views_data() {
  11. $data['views_boxes']['table']['group'] = t('Boxes');
  12. $data['views_boxes']['table']['join'] = array(
  13. '#boxes' => array(),
  14. );
  15. $data['views']['limit'] = array(
  16. 'title' => t('Limit'),
  17. 'help' => t('Limit the number of records returned.'),
  18. 'argument' => array(
  19. 'handler' => 'views_boxes_handler_argument_limit',
  20. ),
  21. );
  22. $data['views']['sort'] = array(
  23. 'title' => t('Sort'),
  24. 'help' => t('Limit which items can but used for sort.'),
  25. 'filter' => array(
  26. 'handler' => 'views_boxes_handler_filter_sort',
  27. ),
  28. );
  29. return $data;
  30. }