Documentation

OnAfterIBlockSectionUpdate

event_handler(
 array &arFields
);
The event OnAfterIBlockSectionUpdate is fired after an attempt to modify the information block section by a call to CIBlockSection::Update.

Parameters

ParameterDescription
arFields An array of the information block element fields to be updated.

The additional entry "RESULT" contains the value returned by the CIBlockSection::Update method. If an error occurred during the method execution, the entry "RESULT_MESSAGE" contains the error description.

Note
The parameter(s) of this handler are references to the original variables. Hence, altering their values from within the handler causes changing values of the source variables passed to the handler.

See Also

  • OnBeforeIBlockSectionUpdate event
  • CIBlockSection::Update
     
    <?
    // file /bitrix/php_interface/init.php
    // register handler
    AddEventHandler("iblock", 
                    "OnAfterIBlockSectionUpdate", 
                    Array("MyClass", "OnAfterIBlockSectionUpdateHandler"));
    
    class MyClass
    {
        // create handler "OnAfterIBlockSectionUpdate"
        public static function OnAfterIBlockSectionUpdateHandler(&$arFields)
        {
            if($arFields["RESULT"])
                AddMessage2Log("Redord ID=".
                               $arFields["ID"]." is modified.");
            else
                AddMessage2Log("Error updating record ".
                               $arFields["ID"].
                               " (".$arFields["RESULT_MESSAGE"].").");
        }
    }
    ?>
  • © «Bitrix24», 2001-2024