yaml.plugin.php 367 B

1234567891011121314
  1. <?php
  2. function hackpoint_yaml_manage_types(&$types){
  3. $types = array_merge($types,glob(__DIR__.SLASH.'types'.SLASH.'*.class.php'));
  4. }
  5. function hackpoint_yaml_mode(&$modes){
  6. $modes[] = "/../yaml/js/yaml.js";
  7. }
  8. Plugin::addHook("hackpoint_resource_type", "hackpoint_yaml_manage_types");
  9. Plugin::addHook("hackpoint_codemirror_modes", "hackpoint_yaml_mode");
  10. ?>