Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $data['person_address'] = array(
- 'table' => array(
- 'join' => array(
- 'person' => array(
- 'field' => 'uid',
- 'left_field' => 'uid',
- ),
- 'address' => array(
- 'field' => 'addressid',
- 'left_field' => 'addressid',
- ),
- ),
- 'group' => t('Address'),
- ),
- 'useraddressid' => array(
- 'title' => t('useraddressid'),
- 'help' => t('The primary key of the user address ID table'),
- 'field' => array(
- 'handler' => 'views_handler_field_numeric',
- 'click sortable' => TRUE,
- ),
- 'filter' => array(
- 'handler' => 'views_handler_filter_numeric',
- 'allow empty' => TRUE,
- ),
- 'argument' => array(
- 'handler' => 'views_handler_argument_numeric',
- ),
- 'sort' => array(
- 'handler' => 'views_handler_sort',
- ),
- ),
- 'uid' => array(
- 'relationship' => array(
- 'title' => t('Person'),
- 'help' => t('Relate Persons to the Address.'),
- 'base' => 'person',
- 'base field' => 'uid',
- 'label' => t('address'),
- 'skip base' => 'person',
- ),
- ),
- 'addressid' => array(
- 'relationship' => array(
- 'group' => t('Person'),
- 'title' => t('Address'),
- 'help' => t('Relate Addresses to the Person.'),
- 'base' => 'address',
- 'base field' => 'addressid',
- 'label' => t('person'),
- 'skip base' => 'address',
- ),
- ),
- );
Add Comment
Please, Sign In to add comment