Documentation

GetDefaultId

CSmileGallery::getDefaultId(
);

The method allows to get Gallery ID by default. Static method.

Parameters

No parameters.

Events

Event Is calledClassAvailable from version
OnBeforeSmileGalleryGetDefaultId before getting smiley settings. Allows to replace the result, if required.
AddEventHandler("main", "OnBeforeSmileGalleryGetDefaultId", "___OnBeforeSmileGalleryGetDefaultId");
function ___OnBeforeSmileGalleryGetDefaultId($setId)
{
    return 16;
}

echo CSmileGallery::getDefaultId(); // return 16
getDefaultId


© «Bitrix24», 2001-2022
Up