<?php /** * [BEGIN_COT_EXT] * Hooks=projects.edit.delete.done * [END_COT_EXT] */ /** * plugin tagslance for Cotonti Siena * * @package tagslance * @version 1.0.0 * @author CMSWorks Team * @copyright Copyright (c) CMSWorks.ru, littledev.ru * @license BSD * */ defined('COT_CODE') or die('Wrong URL.'); if ($cfg['plugin']['tagslance']['projects'] && cot_auth('plug', 'tags', 'W')) { require_once cot_incfile('tags', 'plug'); if (cot_get_caller() == 'i18n.projects') { $tags_extra = array('tag_locale' => $i18n_locale); } else { $tags_extra = null; } cot_tag_remove_all($id, 'projects', $tags_extra); }
<?php /* ==================== [BEGIN_COT_EXT] Hooks=page.edit.delete.done,i18n.page.delete.done [END_COT_EXT] ==================== */ /** * Removes tags when removing a page * * @package Tags * @copyright (c) Cotonti Team * @license https://github.com/Cotonti/Cotonti/blob/master/License.txt */ defined('COT_CODE') or die('Wrong URL'); if ($cfg['plugin']['tags']['pages'] && cot_auth('plug', 'tags', 'W')) { require_once cot_incfile('tags', 'plug'); if (cot_get_caller() == 'i18n.page') { $tags_extra = array('tag_locale' => $i18n_locale); } else { $tags_extra = null; } cot_tag_remove_all($id, 'pages', $tags_extra); }
<?php /** * [BEGIN_COT_EXT] * Hooks=folio.edit.delete.done * [END_COT_EXT] */ /** * plugin tagslance for Cotonti Siena * * @package tagslance * @version 1.0.0 * @author CMSWorks Team * @copyright Copyright (c) CMSWorks.ru, littledev.ru * @license BSD * */ defined('COT_CODE') or die('Wrong URL.'); if ($cfg['plugin']['tagslance']['folio'] && cot_auth('plug', 'tags', 'W')) { require_once cot_incfile('tags', 'plug'); if (cot_get_caller() == 'i18n.folio') { $tags_extra = array('tag_locale' => $i18n_locale); } else { $tags_extra = null; } cot_tag_remove_all($id, 'folio', $tags_extra); }
<?php /** * [BEGIN_COT_EXT] * Hooks=market.edit.delete.done * [END_COT_EXT] */ /** * plugin tagslance for Cotonti Siena * * @package tagslance * @version 1.0.0 * @author CMSWorks Team * @copyright Copyright (c) CMSWorks.ru, littledev.ru * @license BSD * */ defined('COT_CODE') or die('Wrong URL.'); if ($cfg['plugin']['tagslance']['market'] && cot_auth('plug', 'tags', 'W')) { require_once cot_incfile('tags', 'plug'); if (cot_get_caller() == 'i18n.market') { $tags_extra = array('tag_locale' => $i18n_locale); } else { $tags_extra = null; } cot_tag_remove_all($id, 'market', $tags_extra); }
<?php /* ==================== [BEGIN_COT_EXT] Hooks=forums.topics.delete.done [END_COT_EXT] ==================== */ /** * Removes tags linked to a forum post * * @package Tags * @copyright (c) Cotonti Team * @license https://github.com/Cotonti/Cotonti/blob/master/License.txt */ defined('COT_CODE') or die('Wrong URL'); if ($cfg['plugin']['tags']['forums'] && cot_auth('plug', 'tags', 'W')) { require_once cot_incfile('tags', 'plug'); cot_tag_remove_all($q, 'forums'); }