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.

1 Answer 1


Got it!

if ($node = menu_get_object()) {
    $tabs = menu_local_tabs();

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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