我有一个用drupal 7构建的网站，我允许经过身份验证的用户查看其他配置文件。到目前为止，每件事都没问题;问题是单击用户名的何时。他们看到了选项卡"帐户" 默认情况下，我希望它们获得标签"视频" 或博客条目。
I have a site built with Drupal 7, and I allowed the authenticated users to see the other profiles. Till now, every thing was OK; the problem is when they click on the name of a user. They see the tab "account" by default, and I wanted them to get the tab "video" or blog entries instead.
I have the view, edit, video, account tabs, and I used the tab tamer in order to reorganize the theme, but the "Account" tab is still the default one.
How can I make the "Video" tab the default one? Where can I change it?
Please check my site.
I am unaware of any module that does this for you. So, you'll need to use a little bit of code to tweak things. What you need to do is implement hook_menu_alter() in a module to alter the way the tabs are organised. In particular, you will need to swap the menu type of the default tab and your video tab. The types in question are MENU_LOCAL_TASK and MENU_DEFAULT_LOCAL_TASK; i.e., change the default tab to MENU_LOCAL_TASK and your video tab to MENU_DEFAULT_LOCAL_TASK which should set the latter as the default. More information on these constants are provided on the hook_menu() page.
you can use the tab tamer module to rename the tabs and also specify which tabs to show and which not to..it is also fairly simple to use ... hope it solves your problem.