+--------------------------------------------------------------------+
| CiviCRM version 5 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2018 |
+ | Copyright CiviCRM LLC (c) 2004-2019 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
* smart caching scheme on a per domain basis
*
* @package CRM
- * @copyright CiviCRM LLC (c) 2004-2018
+ * @copyright CiviCRM LLC (c) 2004-2019
* $Id$
*
*/
'job_title' => ts('Job Title'),
];
$custom = civicrm_api3('CustomField', 'get', [
- 'return' => ["name", "label", "custom_group_id.title"],
- 'custom_group_id.extends' => ['IN' => ["Contact", "Individual", "Organization", "Household"]],
+ 'return' => ['name', 'label', 'custom_group_id.title'],
+ 'custom_group_id.extends' => ['IN' => ['Contact', 'Individual', 'Organization', 'Household']],
+ 'data_type' => ['NOT IN' => ['ContactReference', 'Date', 'File']],
'custom_group_id.is_active' => 1,
'is_active' => 1,
'is_searchable' => 1,
- 'options' => ['sort' => ['custom_group_id.weight', 'weight']],
+ 'options' => ['sort' => ['custom_group_id.weight', 'weight'], 'limit' => 0],
]);
foreach ($custom['values'] as $field) {
$options['custom_' . $field['name']] = $field['custom_group_id.title'] . ': ' . $field['label'];