function wysiwyg_linebreaks_init in Wysiwyg Linebreaks 7
Same name and namespace in other branches
- 6 wysiwyg_linebreaks.module \wysiwyg_linebreaks_init()
Implements hook_init().
File
- ./
wysiwyg_linebreaks.module, line 23 - Module adds a Wywisyg API plugin that converts p and br tags to linebreaks, and vice-versa.
Code
function wysiwyg_linebreaks_init() {
// Add CSS to hide toolbar buttons
// @todo - don't load this on every page - only pages where WYSIWYG textfields
// might appear. (hook_init() might not be our best option).
drupal_add_css(drupal_get_path('module', 'wysiwyg_linebreaks') . '/wysiwyg_linebreaks.css');
}