How to get all node tabs (MENU_LOCAL_TASK type) which available for current node?

I mean node/%/edit, node/%/translate, node/%/devel etc.

I've tried to use menu_local_tasks() but it shows only empty array.


Got it!

if ($node = menu_get_object()) {
    $tabs = menu_local_tabs();
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.