Integrate with CCK's drag-&-drop interface

BWPanda - August 14, 2009 - 03:57
Project:Simple Access
Version:6.x-2.x-dev
Component:User interface
Category:feature request
Priority:normal
Assigned:Unassigned
Status:needs review
Description

This patch integrates Simple Access with CCK's drag-&-drop interface by implementing the hook_content_extra_fields() function (so users can change where the Simple Access field appears in CCK).

I wasn't sure about the weight value, whether it's needed or not, or whether I also needed to use the content_extra_field_weight() function...
Seems to work fine as is however.

AttachmentSize
simple_access_extra_field.patch644 bytes

#1

BWPanda - August 14, 2009 - 04:39

Actually, try this one instead, I think I've done it right...

AttachmentSize
simple_access_extra_fields_2.patch 960 bytes

#2

gordon - August 15, 2009 - 07:11
Status:needs review» fixed

Thanks, I have committed this to dev.

#3

BWPanda - August 17, 2009 - 00:13

The 6.x-2.x-dev download (http://drupal.org/node/306323) is still showing "Last updated: July 17, 2009 - 22:33"...

#4

BWPanda - August 17, 2009 - 04:27
Version:6.x-2.0-rc4» 6.x-2.x-dev
Status:fixed» needs review

Turns out I was wrong (#550940: How to integrate other modules with CCK's drag-&-drop interface). The attached patch is what's actually needed.
You will probably have to revert the changes from the last patch before committing this one (patch created against 6.x-2.x-dev, 2009-Jul-17)
Sorry :)

AttachmentSize
simple_access-cck-integration.patch 585 bytes
 
 

Drupal is a registered trademark of Dries Buytaert.