Documentation

CForumNew::Update

int
Update(
 int ID,
 array arFields
);

The method Update modifies the parameters of the existing forum specified by the ID. Returns the ID of the modified forum.

Before a forum is modified, you should check whether it can be modified using CanUserUpdateForum.

Parameters

ParameterDescription
ID The ID of the forum whose parameters are to be modified.
arFields An array of the format Array(field1=>value1[, field2=>value2 [, ..]]), where
  • field - field name;
  • value - field value.
The fields are listed in the List of forum fields.

Return Values

Returns the ID of the modified forum on success, or false otherwise.

See Also

  • Forum fields
  • © «Bitrix24», 2001-2024