Skip to content

Instantly share code, notes, and snippets.

@flashvnn
Created May 26, 2013 10:46
Show Gist options
  • Save flashvnn/5652405 to your computer and use it in GitHub Desktop.
Save flashvnn/5652405 to your computer and use it in GitHub Desktop.
Create html text editor Form API
$form[ConfigureNode::BANNER_TOP_CF."_text"] = array(
'#type' => 'text_format',
'#title' => t('Banner Description'),
'#rows' => 5,
'#resizable' => FALSE,
'#default_value' => variable_get(ConfigureNode::BANNER_TOP_CF."_text", ""),
'#format' => 'full_html'
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment