Active
Project:
Translation Access
Version:
6.x-1.x-dev
Component:
User interface
Priority:
Minor
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
28 Sep 2010 at 06:36 UTC
Updated:
20 Nov 2010 at 04:49 UTC
I just seeked to hide the translation tab for content types where the user doesn't have permission to submit content anyway. It turns out that this module isn't fine grained enough. For people seeking out the mentioned functionality, its not too complicated to edit the page.tpl.php:
Look for where $tabs are displayed, and make the code into something like
<?php
//hide translate tab for users not logged in
if ($tabs && ($is_admin||($node->type=="TRANSLATABLE_CONTENT_TYPE"))): ?>
<div class="tabs"><?php print $tabs; ?></div>
<?php endif; ?>
Comments
Comment #1
cdonner commentedI needed the tabs on the user page and I have content translators who are not admins. I modified the condition for displaying the tabs as follows: