forked from Wavyzz/dolibarr
Doxygen
This commit is contained in:
@@ -2662,6 +2662,7 @@ function dol_print_error_email()
|
||||
|
||||
/**
|
||||
* Show title line of an array
|
||||
*
|
||||
* @param name Label of field
|
||||
* @param file Url used when we click on sort picto
|
||||
* @param field Field to use for new sorting
|
||||
@@ -4275,24 +4276,26 @@ function picto_from_langcode($codelang)
|
||||
/**
|
||||
* Complete or removed entries into a head array (used to build tabs) with value added by external modules
|
||||
*
|
||||
* @param conf Object conf
|
||||
* @param langs Object langs
|
||||
* @param object Object object
|
||||
* @param head Object head
|
||||
* @param h New position to fill
|
||||
* @param type Value for object where objectvalue can be
|
||||
* 'thirdparty' to add a tab in third party view
|
||||
* 'intervention' to add a tab in intervention view
|
||||
* 'supplier_order' to add a tab in supplier order view
|
||||
* 'supplier_invoice' to add a tab in supplier invoice view
|
||||
* 'invoice' to add a tab in customer invoice view
|
||||
* 'order' to add a tab in customer order view
|
||||
* 'product' to add a tab in product view
|
||||
* 'propal' to add a tab in propal view
|
||||
* 'member' to add a tab in fundation member view
|
||||
* 'categories_x' to add a tab in category view ('x': type of category (0=product, 1=supplier, 2=customer, 3=member)
|
||||
* @param mode 'add' to complete head, 'remove' to remove entries
|
||||
* @return void
|
||||
* @param Conf $conf Object conf
|
||||
* @param Translate $langs Object langs
|
||||
* @param Object $object Object object
|
||||
* @param array $head Object head
|
||||
* @param int $h New position to fill
|
||||
* @param string $type Value for object where objectvalue can be
|
||||
* 'thirdparty' to add a tab in third party view
|
||||
* 'intervention' to add a tab in intervention view
|
||||
* 'supplier_order' to add a tab in supplier order view
|
||||
* 'supplier_invoice' to add a tab in supplier invoice view
|
||||
* 'invoice' to add a tab in customer invoice view
|
||||
* 'order' to add a tab in customer order view
|
||||
* 'product' to add a tab in product view
|
||||
* 'propal' to add a tab in propal view
|
||||
* 'user' to add a tab in user view
|
||||
* 'group' to add a tab in group view
|
||||
* 'member' to add a tab in fundation member view
|
||||
* 'categories_x' to add a tab in category view ('x': type of category (0=product, 1=supplier, 2=customer, 3=member)
|
||||
* @param string $mode 'add' to complete head, 'remove' to remove entries
|
||||
* @return void
|
||||
*/
|
||||
function complete_head_from_modules($conf,$langs,$object,&$head,&$h,$type,$mode='add')
|
||||
{
|
||||
@@ -4301,11 +4304,13 @@ function complete_head_from_modules($conf,$langs,$object,&$head,&$h,$type,$mode=
|
||||
foreach ($conf->tabs_modules[$type] as $value)
|
||||
{
|
||||
$values=explode(':',$value);
|
||||
|
||||
if ($mode == 'add')
|
||||
{
|
||||
if (count($values) == 6) // new declaration with permissions
|
||||
{
|
||||
if ($values[0] != $type) continue;
|
||||
//print 'ee'.$values[4];
|
||||
if (verifCond($values[4]))
|
||||
{
|
||||
if ($values[3]) $langs->load($values[3]);
|
||||
|
||||
Reference in New Issue
Block a user