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:

$blockInstance = new Vtiger_Block();
$blockInstance->label = 'LBL_PAYSLIP_INFORMATION';
$blockInstance2 = new Vtiger_Block();
$blockInstance2->label = 'LBL_CUSTOM_INFORMATION';


LBL_CUSTOM_INFORMATION block should always be created to support Custom Fields for a module.