Tabs system: Difference between revisions

Jump to navigation Jump to search
m
no edit summary
(Update Dolibarr rights management with hasRight() function.)
mNo edit summary
Tag: 2017 source edit
Line 60: Line 60:
<source lang="php">
<source lang="php">
$this->tabs = array(
$this->tabs = array(
'product:+tabname1:Title1:@mymodule:$user->rights->mymodule->read:/mymodule/mynewtab1.php?id=__ID__',    // To add a new tab identified by code tabname1 in objecttype product (Products/Services)
'product:+tabname1:Title1:@mymodule:$user->hasRight(\'mymodule\', \'read\'):/mymodule/mynewtab1.php?id=__ID__',    // To add a new tab identified by code tabname1 in objecttype product (Products/Services)
'product:+tabname2:Title2:@mymodule:$user->rights->othermodule->read:/mymodule/mynewtab2.php?id=__ID__',  // To add another new tab identified by code tabname2 in objecttype product (Products/Services)
'product:+tabname2:Title2:@mymodule:$user->rights->othermodule->read:/mymodule/mynewtab2.php?id=__ID__',  // To add another new tab identified by code tabname2 in objecttype product (Products/Services)
);
);
20

edits

Navigation menu