Bitrix Site Manager

COption::SetOptionInt

bool
COption::SetOptionInt(
 string module_id,
 string option_id,
 mixed value = "",
 mixed description = false
)

The method SetOptionInt sets numeric value of the parameter option_id for the module_id. Returns true on success, or false otherwise.

Parameters

Parameter Description
module_id Module ID.
option_id Parameter ID.
value Parameter value.
Optional. Empty by default.
description Parameter description.
Optional. False by default which means that the description is absent.

See Also

Example



<?
// set the value of the field
// "Additional menu parameters" 
// in the "Site explorer" module settings
COption::SetOptionInt("fileman", "num_menu_param", 2);
?>