• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/classes/general/hot_keys.php
  • Класс: CHotKeys
  • Вызов: CHotKeys::Delete
public function Delete($ID)
{
	global $DB;

	$this->CleanCache();

	$strSql = "SELECT ID FROM b_hot_keys WHERE CODE_ID=".intval($ID);
	$res = $DB->Query($strSql, false, $this->ErrOrig()." Line: ".__LINE__);

	while($arHK = $res->Fetch())
		CHotKeys::GetInstance()->Delete($arHK["ID"]);

	$sql = "DELETE FROM b_hot_keys_code WHERE ID=".intval($ID);

	return $DB->Query($sql, false, $this->ErrOrig()." Line: ".__LINE__);
}