I've been asked to completely remove the ability for users (even admin) to download the form results.
Under results --> download, I want to completely remove/hide that tab for ALL accounts.

What is the best way to go about this?

I'm assuming i need to go into the code of the module itself, but i didn't want to go blindly and mess this up.

Any advice would be appreciated.

Comments

quicksketch’s picture

Status: Active » Fixed

I'm assuming i need to go into the code of the module itself, but i didn't want to go blindly and mess this up.

You shouldn't need to modify the module at all. You should create a small custom module that uses hook_menu_alter() to change the access on the download tab.

mymodule_menu_alter(&$items) {
  $items['node/%webform_menu/webform-results/download']['access callback'] = FALSE;
}

I generally don't help with custom code in the Webform issue queue. Take a look at existing documentation on writing modules to get started.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.