コード例 #1
0
ファイル: CommonUtils.php プロジェクト: jmangarret/vtigercrm
/**
 * 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);
}
コード例 #2
0
ファイル: Module.php プロジェクト: Bergdahls/YetiForceCRM
 public static function deleteSettingsField($block, $name)
 {
     $db = PearDatabase::getInstance();
     $blockId = Vtiger_Deprecated::getSettingsBlockId($block);
     $db->delete('vtiger_settings_field', 'name = ? AND blockid=?', [$name, $blockId]);
 }