Bitrix Site Manager

CPageOption::RemoveOption

bool
CPageOption::RemoveOption(
 string module_id,
 string page_option_id = ""
)

The RemoveOption method removes one (page_option_id) or all parameters of the module_id for this page.

Parameters

ParameterDescription
module_id Module ID.
page_option_id A page parameter ID.
Optional. Empty by default which means to remove all parameters of the module_id for this page.

See Also

Example



<?
// remove parameter MY_PARAMETER for the current page
CPageOption::RemoveOption("main", "MY_PARAMETER");
?>