Skip to content

Instantly share code, notes, and snippets.

@instanceofjamie
Created May 3, 2012 08:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save instanceofjamie/2584446 to your computer and use it in GitHub Desktop.
Save instanceofjamie/2584446 to your computer and use it in GitHub Desktop.
New T&C's token
case 'terms_conditions_url' :
if(isset($data['node']->field_campaign_related_tcs[LANGUAGE_NONE])) {
$replacements[$original] = l('Terms & Conditions', 'node/' . $data['node']->field_campaign_related_tcs[LANGUAGE_NONE][0]['target_id']);
} else {
$replacements[$original] = '';
}
break;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment