function ckeditor_wysiwyg_plugins in CKEditor for WYSIWYG Module 7
Return internal plugins for this editor; semi-implementation of hook_wysiwyg_plugin().
1 string reference to 'ckeditor_wysiwyg_plugins'
- ckeditor_ckeditor_extended_editor in includes/
ckeditor_extended.inc - Plugin implementation of hook_editor().
File
- includes/
ckeditor_extended.inc, line 134 - Editor integration functions for CKEditor.
Code
function ckeditor_wysiwyg_plugins($editor) {
// Convert the more extensive CKEditor plugin definitions to WYSIWYG API's
// simpler form.
$ckeditor_plugins = ckeditor_plugins();
$plugins = array();
foreach ($ckeditor_plugins as $plugin_name => $plugin) {
if (isset($plugin['buttons'])) {
foreach ($plugin['buttons'] as $button_name => $button) {
$plugin['buttons'][$button_name] = $button['label'];
}
}
$plugins[$plugin_name] = $plugin;
}
return $plugins;
}