activate.php 246 B

1234567891011
  1. <?php
  2. /**
  3. * Register class for the subtype
  4. */
  5. if (get_subtype_id('object', 'site_notification')) {
  6. update_subtype('object', 'site_notification', 'SiteNotification');
  7. } else {
  8. add_subtype('object', 'site_notification', 'SiteNotification');
  9. }