Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $myMediaType = new OptionsetField(
- $name = "MediaType",
- $title = "Media Type",
- $source = array(
- "Video" => "Video",
- "Audio" => "Audio"
- ),
- $value = "Video"
- );
- $fields->addFieldToTab('Root.Content.Main', $myMediaType, 'Content');
Add Comment
Please, Sign In to add comment