Skip to content
Snippets Groups Projects
Commit c6ff857f authored by Satish's avatar Satish
Browse files

Vtlib api to add settings link in CRM

parent 2d84eb7c
No related branches found
No related tags found
No related merge requests found
......@@ -771,8 +771,15 @@ function vtlib_addSettingsLink($linkName, $linkURL, $blockName = false) {
//Check entry name exist in DB or not
$result = $db->pquery('SELECT 1 FROM vtiger_settings_field WHERE name=?', array($linkName));
if ($result && !$db->num_rows($result)) {
$blockName = ($blockName) ? $blockName : 'LBL_OTHER_SETTINGS';
$blockId = getSettingsBlockId($blockName);//Check block name exist in DB or not
$blockId = 0;
if ($blockName) {
$blockId = getSettingsBlockId($blockName);//Check block name exist in DB or not
}
if (!$blockId) {
$blockName = 'LBL_OTHER_SETTINGS';
$blockId = getSettingsBlockId($blockName);//Check block name exist in DB or not
}
//Add block in to DB if not exists
if (!$blockId) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment