Skip to content

Instantly share code, notes, and snippets.

@iredun iredun/init.php
Created Jul 30, 2019

Embed
What would you like to do?
Убрать вкладку "Реклама" при редактировании элемента инфоблока 1С-Битрикс
<?
AddEventHandler('main','OnAdminTabControlBegin','RemoveYandexDirectTab');
function RemoveYandexDirectTab(&$TabControl){
if ($GLOBALS['APPLICATION']->GetCurPage()=='/bitrix/admin/iblock_element_edit.php') {
foreach($TabControl->tabs as $Key => $arTab){
if($arTab['DIV']=='seo_adv_seo_adv') {
unset($TabControl->tabs[$Key]);
}
}
}
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.