// поиск элемента инфоблока и получения ID инфоблока static private function GetIblockByElementID($ID) { $result = false; $arFilter = array('ID' => $ID); $arSelect = array('ID', 'IBLOCK_ID'); $res = CIBlockElement::GetList(Array(), $arFilter, false, Array("nTopCount"=>1), $arSelect); if ( $arFields = $res->Fetch() ) { $result = intval($arFields['IBLOCK_ID']); } return $result; }