Is there an easy way to remove the update tab, from the top of the modules page in Drupal 7, when Update Manager is turned on?

I recently moved my site to an external server and the Update part of Update Manager doesn't work with the new set up. It deletes instead of updates. I still use the part of the module that checks for updates, but would like the tab (or just the 'download these updates' button) removed, so no one is tempted to use this feature.

Comments

babipanghang’s picture

I think you'd best do this with some CSS. Something like

a[href="/admin/modules/update"]{
    display: none;
}

Admitted, it's not the most elegant solution since it leaves an untitled tab (there seem to be no css classes on the tabs which would make it possible to remove the tab altogether), but at least it does what you want.

Did i answer your question on the forums? I love to hear a reply wether or not it worked for you!
Jaap - Acquia certified drupal site builder

spitcher’s picture

It sounds perfect. Where are you putting this code? I tried adding it and the variation below to various css files in my theme and nothing happened.

/*Remove Download button under updates tab*/

input[value="Download these updates"] {
display: none;
}

babipanghang’s picture

How did you get that css? Did mine not work?

Did i answer your question on the forums? I love to hear a reply wether or not it worked for you!
Jaap - Acquia certified drupal site builder

spitcher’s picture

It didn't work, but I am probably putting it in the wrong spot. I tried adding it to several different css files. Past css fixes have shown me that location matters.

Where I got my variation: I looked up your code on Google and tried creating another variation to see if that would work, it didn't.