You are here

function lingotek_identify_tags in Lingotek Translation 7.6

Same name and namespace in other branches
  1. 7.7 lingotek.setup.inc \lingotek_identify_tags()
  2. 7.2 lingotek.setup.inc \lingotek_identify_tags()
  3. 7.3 lingotek.setup.inc \lingotek_identify_tags()
  4. 7.4 lingotek.setup.inc \lingotek_identify_tags()
  5. 7.5 lingotek.setup.inc \lingotek_identify_tags()

Identify CMS tags (e.g., distribution channel)

1 call to lingotek_identify_tags()
lingotek_identify_lead in ./lingotek.setup.inc
Identify lead details

File

./lingotek.setup.inc, line 118

Code

function lingotek_identify_tags() {
  $tags = array();
  $tags['distribution'] = variable_get('install_profile', 'standard');

  // This should identify the distribution including:  'standard', 'acquia', 'commons', 'commerce_kickstart'
  $tags['lead_source'] = 'Module';
  switch ($tags['distribution']) {
    case 'commerce_kickstart':
      $tags['partner'] = 'Commerce Guys';
      $tags['lead_source'] = 'Distribution';
      break;
    case 'commons':
      $tags['partner'] = 'Acquia';
      $tags['lead_source'] = 'Distribution';
      break;
    default:
      $tags['partner'] = '';
      break;
  }
  return $tags;
}