<?php
/**
* Lite Publisher
* Copyright (C) 2010 - 2013 Vladimir Yushko http://litepublisher.ru/ http://litepublisher.com/
* Dual licensed under the MIT (mit.txt)
* and GPL (gpl.txt) licenses.
**/

function trssholdcommentsInstall($self) {
  $self->idurl = litepublisher::$urlmap->add($self->url, get_class($self), null, 'usernormal');
  $self->save();
  
  tcomments::i()->changed = $self->commentschanged;
}

function trssholdcommentsUninstall($self) {
  turlmap::unsub($self);
  tcomments::i()->unbind($self);
}