/** * This function is used to get the blockid of the settings block for a given label. * @param $label - settings label * @return string type value */ function getSettingsBlockId($label) { return Vtiger_Deprecated::getSettingsBlockId($label); }
public static function deleteSettingsField($block, $name) { $db = PearDatabase::getInstance(); $blockId = Vtiger_Deprecated::getSettingsBlockId($block); $db->delete('vtiger_settings_field', 'name = ? AND blockid=?', [$name, $blockId]); }