'. $mod_strings['LBL_LEAD_SOURCE'] . ' ' . $fields['LEAD_SOURCE'] . '
';
if(!empty($fields['PROBABILITY'])) $overlib_string .= ''. $mod_strings['LBL_PROBABILITY'] . ' ' . $fields['PROBABILITY'] . '
';
if(!empty($fields['NEXT_STEP'])) $overlib_string .= ''. $mod_strings['LBL_NEXT_STEP'] . ' ' . $fields['NEXT_STEP'] . '
';
if(!empty($fields['OPPORTUNITY_TYPE'])) $overlib_string .= ''. $mod_strings['LBL_TYPE'] . ' ' . $fields['OPPORTUNITY_TYPE'] . '
';
if(!empty($fields['DESCRIPTION'])) {
$overlib_string .= ''. $mod_strings['LBL_DESCRIPTION'] . ' ';
$overlib_string .= substr($fields['DESCRIPTION'], 0, 300);
if(strlen($fields['DESCRIPTION']) > 300) $overlib_string .= '...';
}
return array('fieldToAddTo' => 'NAME',
'string' => $overlib_string,
'editLink' => "index.php?action=EditView&module=Opportunities&return_module=Opportunities&record={$fields['ID']}",
'viewLink' => "index.php?action=DetailView&module=Opportunities&return_module=Opportunities&record={$fields['ID']}");
}
?>