Content type admin for owners in tabs of group node

vaab - September 26, 2007 - 13:08
Project:Content Type Administration by Organic Group
Version:5.x-1.x-dev
Component:User interface
Category:feature request
Priority:normal
Assigned:rconstantine
Status:closed
Description

Hi, My admins can only access to their "content type admin" page only through the "group details block". But I'd rather remove this block which isn't usefull in my installation.

Why isn't there a tab in the "node page" of the group ? I added it by adding :

      $items[] = array('path' => "node/$gid/ogct",
       'title' => t('Content Types'),
       'callback' => 'drupal_get_form',
       'callback arguments' => array('og_content_type_admin_owner', $node),
       'weight' => 6,
       'type' => MENU_LOCAL_TASK);

at the end of your code in the og_content_type_admin_menu function (next to the similar entry) ? If you find this pertinent, could you add it to your code ?

I have now a neat "Content Type" tab showing in the group view and only for group administrators... It is next to View, Edit, Categories (from og_vocab) ... etc...

If this isn't what you want, could you please explain what I got wrong ?

#1

rconstantine - September 26, 2007 - 18:42
Status:active» patch (code needs review)

Interesting. I'll mark this as 'code needs review' so I don't lose it. I think the only thing I would change would be to make it conditional on the non-existence of the group details block since the link doesn't need to be doubled up.

#2

rconstantine - November 29, 2007 - 07:52

I'll probably add this soon, but I'm wondering why you don't want to use this module's block? Do you allow all of your content types to be created at the site-wide level as well? Otherwise, doesn't my module remove the links from the main content creation menu?

#3

rconstantine - December 3, 2007 - 21:30
Assigned to:Anonymous» rconstantine
Status:patch (code needs review)» fixed

Had to modify the original code and changed the block menu to point to the same place. Will be in the next release.

#4

Anonymous - December 17, 2007 - 21:32
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.