• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/classes/general/pageoption.php
  • Класс: CAllPageOption
  • Вызов: CAllPageOption::RemoveOption
static function RemoveOption($module_id, $name="", $site=false)
{
	if ($site === false)
	{
		foreach (static::$MAIN_PAGE_OPTIONS as $site => $temp)
		{
			if ($name == "")
				unset(static::$MAIN_PAGE_OPTIONS[$site][$module_id]);
			else
				unset(static::$MAIN_PAGE_OPTIONS[$site][$module_id][$name]);
		}
	}
	else
	{
		if ($name == "")
			unset(static::$MAIN_PAGE_OPTIONS[$site][$module_id]);
		else
			unset(static::$MAIN_PAGE_OPTIONS[$site][$module_id][$name]);
	}
}