/**
* Get a standard set of contact filters.
*
+ * @param array $defaults
+ *
* @return array
*/
- public function getBasicContactFilters() {
+ public function getBasicContactFilters($defaults = array()) {
return array(
'sort_name' => array(
'title' => ts('Contact Name'),
'is_deceased' => array(
'title' => ts('Deceased'),
'type' => CRM_Utils_Type::T_BOOLEAN,
- 'default' => 0,
+ 'default' => CRM_Utils_Array::value('deceased', $defaults, 0),
),
'do_not_email' => array(
'title' => ts('Do not email'),
),
)
),
+ 'filters' => $this->getBasicContactFilters(array('deceased' => NULL)),
'grouping' => 'contact-fields',
'group_bys' => array(
'id' => array('title' => ts('Contact ID')),