Created
January 23, 2015 23:21
-
-
Save jackfoust/459d0672c51892e83d57 to your computer and use it in GitHub Desktop.
WYSIWYG with Drupal Form API
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
<?php | |
$defaults = array( | |
'value' => '', | |
'format' => filter_default_format(), | |
); | |
$example = variable_get('example_variable', $defaults); | |
$form_['example'] = array( | |
'#title' => t(''), | |
'#type' => 'text_format', | |
'#description' => t('), | |
'#default_value' => $example['value'], | |
'#format' => $example['format'], | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment