activate.php 318 B

1234567891011121314
  1. <?php
  2. /**
  3. * This file is executed when the plugin is enabled
  4. */
  5. // register our own classes
  6. if (!update_subtype('object', 'question', 'ElggQuestion')) {
  7. add_subtype('object', 'question', 'ElggQuestion');
  8. }
  9. if (!update_subtype('object', 'answer', 'ElggAnswer')) {
  10. add_subtype('object', 'answer', 'ElggAnswer');
  11. }