Created
May 3, 2012 13:33
-
-
Save instanceofjamie/2585635 to your computer and use it in GitHub Desktop.
Working default T&C's text
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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