You are here

function crm_core_contact_ui_save_contact_button_name in CRM Core 7

Returns save contact button name depending on contact type.

3 calls to crm_core_contact_ui_save_contact_button_name()
CRMCoreContactUITestCase::testContactOperations in modules/crm_core_contact_ui/crm_core_contact_ui.test
User with permissions 'administer crm_core_contact entities' should be able to create/edit/delete contacts of any contact type.
CRMCoreRelationshipUITestCase::testRelationshipOperations in modules/crm_core_relationship_ui/crm_core_relationship_ui.test
crm_core_contact_ui_form in modules/crm_core_contact_ui/crm_core_contact_ui.pages.inc
Form callback: create or edit a contact.

File

modules/crm_core_contact_ui/crm_core_contact_ui.module, line 149
Provides a user interface for CRM Core Contact.

Code

function crm_core_contact_ui_save_contact_button_name($contact_type) {
  return t('Save !contact_type', array(
    '!contact_type' => crm_core_contact_type_get_name($contact_type),
  ));
}