Module BlockΒΆ
Class Vtiger_Block provides API to work with a Module block, the container which holds the fields together. The example given below describes the way of creating new blocks for the module created earlier:
include_once('vtlib/Vtiger/Module.php');
$blockInstance = new Vtiger_Block();
$blockInstance->label = 'LBL_PAYSLIP_INFORMATION';
$moduleInstance->addBlock($blockInstance);
$blockInstance2 = new Vtiger_Block();
$blockInstance2->label = 'LBL_CUSTOM_INFORMATION';
$moduleInstance->addBlock($blockInstance2);
Note
LBL_CUSTOM_INFORMATION block should always be created to support Custom Fields for a module.