Skip to content

Instantly share code, notes, and snippets.

@jmertic
Created April 21, 2011 02:54
Show Gist options
  • Select an option

  • Save jmertic/933598 to your computer and use it in GitHub Desktop.

Select an option

Save jmertic/933598 to your computer and use it in GitHub Desktop.
<?php
function get_list_view_data(){
--clipped code--
// Grab the contact phone number
if ( !empty($this->contact_id) ) {
$contactFocus = new Contact;
$contactFocus->retrieve($this->contact_id);
if ( !empty($contactFocus->id) ) {
$call_fields['CONTACT_PHONE_WORK'] = $contactFocus->phone_work;
}
}
return $call_fields;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment