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.
| Parameter | Description |
|---|---|
| module_id | Module ID. |
| option_id | Parameter ID. Optional. Empty by default which means to remove all the module parameters. |
<?
// remove parameter "Results per page"
// of the "Web forms" module from the database
COption::RemoveOption("form", "RESULTS_PAGEN");
?>
| © 2001-2005 Bitrix | Bitrix Site Manager - Content Management & Portal Solutions |