function crm_core_contact_default_label_format_install in CRM Core 7
Create custom name format to be used as contact label.
2 calls to crm_core_contact_default_label_format_install()
- crm_core_contact_install in modules/
crm_core_contact/ crm_core_contact.install - Implements hook_install().
- crm_core_contact_update_7006 in modules/
crm_core_contact/ crm_core_contact.install - Add "name" field to "crm_core_contact" table.
File
- modules/
crm_core_contact/ crm_core_contact.install, line 38 - Install, update and uninstall functions for the CRM Core Contact module.
Code
function crm_core_contact_default_label_format_install() {
$t = get_t();
db_insert('name_custom_format')
->fields(array(
'name' => $t('CRM Core Contact label format'),
'machine_name' => 'crm_core_contact_label_format',
'format' => '((((t+ig)+im)+if)+is)+jc',
))
->execute();
}