Active
Project:
Content Construction Kit (CCK)
Version:
6.x-1.x-dev
Component:
General
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
24 Mar 2007 at 04:18 UTC
Updated:
24 May 2010 at 07:10 UTC
I'm creating a Drupal install profile/distribution for a client and create some custom node types with 'locked' => TRUE so they can't be deleted and thought it would be cool to have a clean way to programmatically create certain fields for those content types and allow fields to be locked on a certain content type. I know we can drupal_execute() to do the fields so that is good enough for now, but is there a way to lock fields? My main feature request is to prevent field deletion and hardcode the field machine name. Thanks.
Comments
Comment #1
RobRoy commentedA cool use case would be for an event node type created by calendar.module which creates and locks a date field to the node.
Comment #2
catchStill valid afaik. Bumping this so it can be marked duplicate of whatever issue has this in more depth later.
Comment #3
yched commentedWe don't exactly have hook-defined fields *yet*, but when we do, all module-defined fields will be locked (instance level settings like Label, weight, widgets, formatters will still be editable).
Not sure what to to with the issue, though. In the current state of things, it's a won't fix...
Comment #4
aaron commentedwe need this for a stable image module to image field module migration path as well. bumping this to postpone. for now, we'll simply use form_alters, will post a work-around for this later for interested folks.
Comment #5
karens commentedSimple locking has been added. More could be done later.
Comment #6
karens commentedComment #7
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #8
junro commentedHello,
Is there a way to lock fields now? or it's still impossible ?
When a field has a value, I would like to lock this field to authenticated users. That they could not change the value again.
I'm looking for this since a long time.
Is there a way to do this? Something like when the field has a value, permissions are removed for authenticated users.
Thanks :)
Comment #9
zeezhao commentedAlso interested in this. Please let me know if you were bale to get resolved.