Skip to content

Commit

Permalink
Merge pull request #434 from yashodha/6.x-CRM-20205
Browse files Browse the repository at this point in the history
CRM-20205 - Expose current employer id to views
  • Loading branch information
yashodha authored Jun 6, 2017
2 parents e4417ca + 632bd65 commit ef233b0
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions modules/views/components/civicrm.core.inc
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,26 @@ function _civicrm_core_data(&$data, $enabled) {
),
);

//Current Employer ID
$data['civicrm_contact']['employer_id'] = array(
'title' => t('Current Employer Id'),
'help' => t('Current Employer Id'),
'field' => array(
'handler' => 'civicrm_handler_field_contact_link',
'click sortable' => TRUE,
),
'argument' => array(
'handler' => 'views_handler_argument_string',
),
'filter' => array(
'handler' => 'views_handler_filter_string',
'allow empty' => TRUE,
),
'sort' => array(
'handler' => 'views_handler_sort',
),
);

//DISPLAY Name for the Contact (Full Name with Prefixes and Suffixes)
$data['civicrm_contact']['display_name'] = array(
'title' => t('Display Name'),
Expand Down

0 comments on commit ef233b0

Please sign in to comment.