GetGlobalContentOperations(); $templateops = $gCms->GetTemplateOperations(); $blobobj = $gcbops->LoadHtmlBlobByID($htmlblob_id); $htmlblob_name = $blobobj->name; if ($blobobj) { Events::SendEvent('Core', 'DeleteGlobalContentPre', array('global_content' => &$blobobj)); $result = $blobobj->Delete(); } if ($result == true) { Events::SendEvent('Core', 'DeleteGlobalContentPost', array('global_content' => &$blobobj)); // put mention into the admin log audit($htmlblob_id, 'Global Content Block: '.$htmlblob_name, 'Deleted'); } } } redirect("listhtmlblobs.php".$urlext); # vim:ts=4 sw=4 noet ?>