function lingotek_identify_lead in Lingotek Translation 7.4
Same name and namespace in other branches
- 7.7 lingotek.setup.inc \lingotek_identify_lead()
- 7.2 lingotek.setup.inc \lingotek_identify_lead()
- 7.3 lingotek.setup.inc \lingotek_identify_lead()
- 7.5 lingotek.setup.inc \lingotek_identify_lead()
- 7.6 lingotek.setup.inc \lingotek_identify_lead()
Identify lead details
1 call to lingotek_identify_lead()
- lingotek_setup_new_account_form_submit in ./lingotek.setup.inc 
- New Account - Form Processor Provisions a Lingotek account and sends activation notice.
File
- ./lingotek.setup.inc, line 95 
Code
function lingotek_identify_lead($data) {
  global $base_url;
  $info = array(
    'first_name' => '',
    'last_name' => '',
    'email' => '',
    'company' => lingotek_get_site_name(),
    // Website name => company
    'website' => $base_url,
    // website url
    'type' => LINGOTEK_DEV ? 'QA' : 'Prospect',
    'cms' => 'Drupal',
    'distribution' => '',
    'lead_source' => '',
    'partner' => '',
  );
  $tags = lingotek_identify_tags();
  $lead = array_merge($info, $tags, $data);
  return $lead;
}