I am trying to located the template file or function that outputs the following buttonson the webform results tab

Secondary tabs

Submissions(active tab)

Can anyone advise how I can tweak/remove/hide some of these

1 Answer 1


The best way to hide menu item from the secondary tabs should be to alter the access callback of the menu item.

function yourmodule_menu_alter(&$item) {
  // This hides the analysis item. Others should work simillary.
  $item['node/%webform_menu/webform-results/analysis']['access callback'] = 'yourmodule_webform_result_access';

function yourmodule_webform_result_access($node, $account = NULL) {
  // You can put here any custom logic of your needs.
  return FALSE; 
  • What if i want to restrict access to analysis to all except administrator ?
    – Michael
    Feb 23, 2016 at 20:46

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.