Bitrix Site Manager

COption::RemoveOption

bool
COption::RemoveOption(
 string module_id,
 string option_id = ""
)

The method RemoveOption removes one (option_id) or all parameters of the module_id from the database.

Parameters

ParameterDescription
module_id Module ID.
option_id Parameter ID.
Optional. Empty by default which means to remove all the module parameters.

See Also

Example



<?
// remove parameter "Results per page" 
// of the "Web forms" module from the database
COption::RemoveOption("form", "RESULTS_PAGEN");
?>