• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/classes/general/pageoption.php
  • Класс: CAllPageOption
  • Вызов: CAllPageOption::GetOptionString
static function GetOptionString($module_id, $name, $def="", $site=false)
{
	if($site===false)
		$site = SITE_ID;

	if(isset(static::$MAIN_PAGE_OPTIONS[$site][$module_id][$name]))
		return static::$MAIN_PAGE_OPTIONS[$site][$module_id][$name];
	elseif(isset(static::$MAIN_PAGE_OPTIONS["-"][$module_id][$name]))
		return static::$MAIN_PAGE_OPTIONS["-"][$module_id][$name];
	return $def;
}