Documentation

RemoveOption

bool
CPageOption::RemoveOption(
 string module_id,
 string name = "",
 string site=false
)

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

Parameters

ParameterDescription Available from version
module_id Module ID.
page_option_id Arbitrary page parameter ID.
Optional, by default - "" (delete all the page parameter values for the module_id).
site SIte ID. Default value - "false".

Examples of use

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


© «Bitrix24», 2001-2024
Up