@Fox
Check files:
modules/contacts/metadata/subpaneldefs.php
and
custom/modules/contacts/metadata/subpaneldefs.php
The file in the custom directory has higher priority. There should be a section:
...
'history' => array(
'order' => 20,
'sort_order' => 'desc',
'sort_by' => 'date_entered',
'title_key' => 'LBL_HISTORY_SUBPANEL_TITLE',
'type' => 'collection',
'subpanel_name' => 'history', //this values is not associated with a physical file.
'module' => 'History',
'top_buttons' => array(
array('widget_class' => 'SubPanelTopCreateNoteButton'),
array('widget_class' => 'SubPanelTopArchiveEmailButton'),
array('widget_class' => 'SubPanelTopSummaryButton'),
array('widget_class' => 'SubPanelTopFilterButton'),
),
'collection_list' => array(
'tasks' => array(
'module' => 'Tasks',
'subpanel_name' => 'ForHistory',
'get_subpanel_data' => 'tasks',
),
'tasks_parent' => array(
'module' => 'Tasks',
'subpanel_name' => 'ForHistory',
'get_subpanel_data' => 'tasks_parent',
),
'meetings' => array(
'module' => 'Meetings',
'subpanel_name' => 'ForHistory',
'get_subpanel_data' => 'meetings',
),
'calls' => array(
'module' => 'Calls',
'subpanel_name' => 'ForHistory',
'get_subpanel_data' => 'calls',
),
'notes' => array(
'module' => 'Notes',
'subpanel_name' => 'ForHistory',
'get_subpanel_data' => 'notes',
),
'emails' => array(
'module' => 'Emails',
'subpanel_name' => 'ForHistory',
'get_subpanel_data' => 'emails',
),
'linkedemails' => array(
'module' => 'Emails',
'subpanel_name' => 'ForUnlinkedEmailHistory',
'get_subpanel_data' => 'function:get_unlinked_email_query',
'generate_select' => true,
'function_parameters' => array('return_as_array' => 'true'),
),
),
'searchdefs' => array(
'collection' =>
array(
'name' => 'collection',
'label' => 'LBL_COLLECTION_TYPE',
'type' => 'enum',
'options' => $GLOBALS['app_list_strings']['collection_temp_list'],
'default' => true,
'width' => '10%',
),
'name' =>
array(
'name' => 'name',
'default' => true,
'width' => '10%',
),
'current_user_only' =>
array(
'name' => 'current_user_only',
'label' => 'LBL_CURRENT_USER_FILTER',
'type' => 'bool',
'default' => true,
'width' => '10%',
),
'date_modified' =>
array(
'name' => 'date_modified',
'default' => true,
'width' => '10%',
),
),
),
...