<?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 tpostcatwidgetInstall($self) {
  $widgets = twidgets::i();
  $widgets->deleted = $self->widgetdeleted;
  
  tcategories::i()->deleted = $self->tagdeleted;
}

function tpostcatwidgetUninstall($self) {
  tcategories::i()->unbind($self);
  $widgets = twidgets::i();
  $widgets->unbind($self);
}