function ckeditor_image_plugin_check in CKEditor for WYSIWYG Module 7
Same name and namespace in other branches
- 8 ckeditor.module \ckeditor_image_plugin_check()
Enabled callback for hook_ckeditor_plugins().
Checks if our Caption plugin should be enabled based on the configuration of a text format and editor.
1 string reference to 'ckeditor_image_plugin_check'
- ckeditor_ckeditor_plugins in ./
ckeditor.module - Implements hook_ckeditor_plugins().
File
- ./
ckeditor.module, line 331
Code
function ckeditor_image_plugin_check($editor, $format) {
// Automatically enable caption support if the DrupalImage button is enabled.
foreach ($editor->settings['toolbar'] as $row) {
if (in_array('DrupalImage', $row)) {
return TRUE;
}
}
}