Dissapearing magic_tabs from my own module.
| Project: | Magic Tabs |
| Version: | 6.x-1.0 |
| Component: | Documentation |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Hello.
It seams I have the same problem as mentioned in Disappearing magic_tabs for version 5 but with some differences.
I have created a magic_tabs callback function. This function works ok if I’ll put it in magic_tabs.module but it doesn't work ok (magic_tabs disappears when any tab is pressed) if i put the function in my own module. (it is a simple module which create a page in which I invoke the function).
If I'll create a page in which I'll put the function from my own module I receive an error message: "warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'magic_tabs_parteneri_callback' was given in C:\xampp\htdocs\ipad\sites\all\modules\magic_tabs\magic_tabs.module on line 97."
If I'll put the function in your module magic_tabs.module everything is ok...
Please give me a solution. It is not ok to put the function in magic_tabs.module because I'll try to be up to date with your module. Probably it is something wrong with my module...
Thank you
Marcel

#1
This will happen when the code with the callback does not get loaded. When this happens, the function could not be found, and you get the "disappearing tabs" behavior.
Are you sure your module is enabled?
Have you put your function in a file different from the .module file? Make sure it is included then..
#2
Thank you for your quick reply.
Yes my function is in a different file. In my module menu hook I have invoked a new file... and there is my function....I love this way because my files are not too large...I'll include the new file in module file or I'll put the function in module file...
Thank you again
Marcel
#3
#4
You can include your file in hook_init().