function tagkill() { global $vbulletin, $vbphrase; $taglist = tagcp_fetch_tag_list(); if (sizeof($taglist)) { foreach ($taglist as $killtagid) { $killtagdm = datamanager_init('tag', $vbulletin, ERRTYPE_ARRAY); if ($killtagdm->fetch_by_id($killtagid)) { $killtagdm->delete(); } } // need to invalidate the search and tag cloud caches build_datastore('tagcloud', '', 1); build_datastore('searchcloud', '', 1); } setcookie('vbulletin_inlinetag', '', TIMENOW - 3600, '/'); print_cp_header($vbphrase['tag_manager']); print_stop_message('tags_deleted_successfully'); }
function tagkill() { global $vbulletin, $vbphrase, $stop_file, $stop_args; $taglist = tagcp_fetch_tag_list(); if (sizeof($taglist)) { $kill = vB_Api::instance('Tags')->killTags($taglist); if ($kill['errors']) { print_cp_header($vbphrase['tag_manager']); print_stop_message2($promote['errors'][0], $stop_file, $stop_args); } // need to invalidate the search and tag cloud caches build_datastore('tagcloud', '', 1); build_datastore('searchcloud', '', 1); } setcookie('vbulletin_inlinetag', '', TIMENOW - 3600, '/'); print_cp_header($vbphrase['tag_manager']); print_stop_message2('tags_deleted_successfully', $stop_file, $stop_args); }