You should receive into the key context of the array $parameters the
list of context you are inside. So you should have "ordercard" inside
this array.
If not, can you check you use version 3.2 (may be this as fixed with 3.2) ?
Le 14/07/2012 23:27, Manuel Muñoz a écrit :
****Dear Developevelopment and coding <[email protected]>
i'm trying to implement a hook for the ordercard context overloading
"formObjectOptions" function
this is the print_f for the $parameters object
array ( [colspan] => colspan="2" [context] =>
searchform:leftblock:toprightmenu:ordercard ).
the question is: how can i validate that the context es actually
"ordercard"? what type of data i the element context in this case?
already tried with ststr and substr function, but i don't seem to get
a match.
Thanks in advance for all your comments
_______________________________________________
Dolibarr-dev mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/dolibarr-dev
_______________________________________________
Dolibarr-dev mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/dolibarr-dev