Skip to content

Instantly share code, notes, and snippets.

@instanceofjamie
Created May 3, 2012 13:33
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/2585635 to your computer and use it in GitHub Desktop.
Save instanceofjamie/2585635 to your computer and use it in GitHub Desktop.
Working default T&C's text
// Make the default text for terms and conditions set from the admin.
if (!isset($form['field_campaign_text_tcs'][LANGUAGE_NONE][0]['value']['#default_value'])) {
$form['field_campaign_text_tcs'][LANGUAGE_NONE][0]['value']['#default_value'] = variable_get('terms_conditions_text', 'bob');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment