custom link section

This commit is contained in:
aynsix
2020-05-27 11:27:18 +03:00
parent 1f1a2e9aa1
commit 71cc21bb43
2 changed files with 24 additions and 13 deletions

View File

@@ -181,19 +181,14 @@ class RegistryFormManipulator
], ],
'custom-links' => [ 'custom-links' => [
[ [
'linkName' => 'Phraseanet store', 'linkName' => 'Phraseanet store',
'linkLanguage' => 'fr', 'linkLanguage' => 'all',
'linkUrl' => 'https://alchemy.odoo.com/shop', 'linkUrl' => 'https://store.alchemy.fr',
'linkLocation' => 'help-menu', 'linkLocation' => 'help-menu',
'linkOrder' => '1', 'linkOrder' => 1,
], 'linkBold' => false,
[ 'linkColor' => ''
'linkName' => 'Phraseanet store', ]
'linkLanguage' => 'en',
'linkUrl' => 'https://alchemy.odoo.com/en_US/shop',
'linkLocation' => 'help-menu',
'linkOrder' => '1',
],
] ]
]; ];
} }

View File

@@ -153,6 +153,22 @@ class patch_410alpha28a implements patchInterface
$app['conf']->set(['main', 'binaries', 'exiftool_timeout'], 60); $app['conf']->set(['main', 'binaries', 'exiftool_timeout'], 60);
} }
// custom-link section, remove default store
$app['conf']->remove(['registry', 'custom-links', 0]);
$app['conf']->remove(['registry', 'custom-links', 1]);
$customLinks = [
'linkName' => 'Phraseanet store',
'linkLanguage' => 'all',
'linkUrl' => 'https://store.alchemy.fr',
'linkLocation' => 'help-menu',
'linkOrder' => 1,
'linkBold' => false,
'linkColor' => ''
];
$app['conf']->set(['registry', 'custom-links', 0], $customLinks);
return true; return true;
} }
} }