Skip to content

Commit

Permalink
Merge pull request #569 from laryn/patch-5
Browse files Browse the repository at this point in the history
Expose "created date" to views
  • Loading branch information
yashodha authored Mar 16, 2023
2 parents 8dd223f + 342428b commit 0ec6bf7
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions modules/views/components/civicrm.core.inc
Original file line number Diff line number Diff line change
Expand Up @@ -707,6 +707,22 @@ function _civicrm_core_data(&$data, $enabled) {
'handler' => 'civicrm_handler_sort_date',
),
);
// Created date
$data['civicrm_contact']['created_date'] = array(
'title' => t('Created date'),
'help' => t("The date the contact's record was created."),
'field' => array(
'handler' => 'civicrm_handler_field_datetime',
'click sortable' => TRUE,
),
'filter' => array(
'handler' => 'civicrm_handler_filter_datetime',
'is date' => TRUE,
),
'sort' => array(
'handler' => 'civicrm_handler_sort_date',
),
);
// Image URL
$data['civicrm_contact']['image_URL'] = array(
'title' => t('Contact Image'),
Expand Down

0 comments on commit 0ec6bf7

Please sign in to comment.