updated field name for caption text field.

This commit is contained in:
Myles Beardsmore 2015-05-24 13:35:53 +12:00 committed by Will Morgan
parent 50e33b8e5e
commit 06730bc1b3

View File

@ -226,7 +226,7 @@ Example: Remove field for "image captions"
// File: mysite/code/MyToolbarExtension.php
class MyToolbarExtension extends Extension {
public function updateFieldsForImage(&$fields, $url, $file) {
$fields->removeByName('Caption');
$fields->removeByName('CaptionText');
}
}