delete
public static \Bitrix\Main\Config\Option::delete( string $moduleId, array $filter = array() );
This static method deletes values of module parameters from database for the site. The value is only one, array of fields cannot be passed. It means that multiple parameters cannot be simultaneously deleted only by listing their names.
Similar to the method COption::RemoveOption in the old core.
Parameters
Parameter | Description | Version |
---|---|---|
$moduleId | Module ID. Required. | |
$name | Parameter name | before 14.0.0 |
$siteId | Site identifier | before 14.0.0 |
$filter | Array of filter keys
| from 14.0.0 |
Excpetions
Examples
Option::delete("main", array( "name" => "max_file_size", "site_id" => "s2" ) );
© «Bitrix24», 2001-2024