Documentation

OnBlogAdd

bool
Handler function(
 int   ID
 array &arParams 
);

Event is called when a blog is added.

Function parameters

ParameterDescription
ID Added blog ID.
arParams Array of fields for blog.

See Also

Example

<?
// /bitrix/php_interface/init.php file
// register the handler
AddEventHandler("blog",
                "OnBlogAdd",
                Array("MyClass", "OnBlogAddHandler"));


class MyClass
{
    // create the "OnBlogAdd" event handler
    public static function OnBlogAddHandler($ID, &$arFields)
    {
		...
    }
}
?>


© «Bitrix24», 2001-2024