You are here

function crm_core_contact_view in CRM Core 7

View a single contact record.

2 calls to crm_core_contact_view()
crm_core_contact_search_execute in modules/crm_core_contact/crm_core_contact.module
Implements hook_search_execute().
crm_core_contact_update_index in modules/crm_core_contact/crm_core_contact.module
Implements hook_update_index().
3 string references to 'crm_core_contact_view'
crm_core_contact_ui_menu in modules/crm_core_contact_ui/crm_core_contact_ui.module
Implements hook_menu().
crm_core_contact_view_menu_alter in modules/crm_core_contact/plugins/tasks/view.inc
Callback defined by crm_core_contact_view_page_manager_tasks().
crm_core_contact_view_page in modules/crm_core_contact/plugins/tasks/view.inc
Entry point for our overridden crm_core_contact view.

File

modules/crm_core_contact/crm_core_contact.module, line 871
Provides default CRM Core Contact entities and the ability to create more.

Code

function crm_core_contact_view($contact, $view_mode = 'full') {
  $langcode = $GLOBALS['language_content']->language;
  module_invoke_all('entity_view', $contact, 'crm_core_contact', $view_mode, $langcode);
  $build = $contact
    ->view($view_mode, $langcode);
  return $build;
}