I have a small request and I am sure very simple to do.
I would like to display the company phone number on the contacts page so we don't have to click on the company that is linked to the contact in order to see it.
if(!$record['company_name']) return '---'; $company = CRM_ContactsCommon::get_company($record['company_name']); if(!isset($company['phone']) || !$company['phone']) return '---'; return $company['phone'];
That worked perfect!
This will answer most of all my other questions on how to display other information elsewhere. Thank you so much!