Guest User

Untitled

a guest
Jan 24th, 2018
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.51 KB | None | 0 0
  1. $data['person_address'] = array(
  2. 'table' => array(
  3. 'join' => array(
  4. 'person' => array(
  5. 'field' => 'uid',
  6. 'left_field' => 'uid',
  7. ),
  8. 'address' => array(
  9. 'field' => 'addressid',
  10. 'left_field' => 'addressid',
  11. ),
  12. ),
  13. 'group' => t('Address'),
  14. ),
  15. 'useraddressid' => array(
  16. 'title' => t('useraddressid'),
  17. 'help' => t('The primary key of the user address ID table'),
  18. 'field' => array(
  19. 'handler' => 'views_handler_field_numeric',
  20. 'click sortable' => TRUE,
  21. ),
  22. 'filter' => array(
  23. 'handler' => 'views_handler_filter_numeric',
  24. 'allow empty' => TRUE,
  25. ),
  26. 'argument' => array(
  27. 'handler' => 'views_handler_argument_numeric',
  28. ),
  29. 'sort' => array(
  30. 'handler' => 'views_handler_sort',
  31. ),
  32. ),
  33. 'uid' => array(
  34. 'relationship' => array(
  35. 'title' => t('Person'),
  36. 'help' => t('Relate Persons to the Address.'),
  37. 'base' => 'person',
  38. 'base field' => 'uid',
  39. 'label' => t('address'),
  40. 'skip base' => 'person',
  41. ),
  42. ),
  43. 'addressid' => array(
  44. 'relationship' => array(
  45. 'group' => t('Person'),
  46. 'title' => t('Address'),
  47. 'help' => t('Relate Addresses to the Person.'),
  48. 'base' => 'address',
  49. 'base field' => 'addressid',
  50. 'label' => t('person'),
  51. 'skip base' => 'address',
  52. ),
  53. ),
  54. );
Add Comment
Please, Sign In to add comment