forked from Wavyzz/dolibarr
Revert "NEW - Add a new hook on order list (#31315)"
This reverts commit 1e64870a9e.
This commit is contained in:
@@ -2566,21 +2566,6 @@ if ($resql) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Call Hook modifyTextInfo
|
|
||||||
$parameters = array('textinfo' => $text_info);
|
|
||||||
$reshook = $hookmanager->executeHooks('modifyTextInfo', $parameters, $object, $action);
|
|
||||||
if ($reshook == 1) {
|
|
||||||
// for add information
|
|
||||||
$text_info .= $hookmanager->resPrint;
|
|
||||||
} elseif ($reshook == 0) {
|
|
||||||
// for replace information
|
|
||||||
$text_info = $hookmanager->resPrint;
|
|
||||||
} elseif ($reshook == -1) {
|
|
||||||
// for errors
|
|
||||||
setEventMessages($hookmanager->error, $hookmanager->errors, 'errors');
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($notshippable == 0) {
|
if ($notshippable == 0) {
|
||||||
$text_icon = img_picto('', 'dolly', '', false, 0, 0, '', 'green paddingleft');
|
$text_icon = img_picto('', 'dolly', '', false, 0, 0, '', 'green paddingleft');
|
||||||
$text_info = $text_icon.' '.$langs->trans('Shippable').'<br>'.$text_info;
|
$text_info = $text_icon.' '.$langs->trans('Shippable').'<br>'.$text_info;
|
||||||
|
|||||||
Reference in New Issue
Block a user