function picture_wysiwyg_plugin in Picture 7
Same name and namespace in other branches
- 7.2 picture.module \picture_wysiwyg_plugin()
Implements hook_wysiwyg_plugin() to modify the CKEditor image dialog for use with the picture module.
File
- ./
picture.module, line 1433 - Picture formatter.
Code
function picture_wysiwyg_plugin($editor, $version) {
if ($editor == 'ckeditor') {
return array(
'picture_ckeditor' => array(
'path' => drupal_get_path('module', 'picture') . '/plugins/',
'load' => TRUE,
'extensions' => array(
'picture_ckeditor' => t('Responsive images with the Picture Module'),
),
'url' => 'http://drupal.org/projects/picture',
),
);
}
}