Guest User

Untitled

a guest
Jun 19th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. $myMediaType = new OptionsetField(
  2. $name = "MediaType",
  3. $title = "Media Type",
  4. $source = array(
  5. "Video" => "Video",
  6. "Audio" => "Audio"
  7. ),
  8. $value = "Video"
  9. );
  10. $fields->addFieldToTab('Root.Content.Main', $myMediaType, 'Content');
Add Comment
Please, Sign In to add comment