Code snippet: How to set the disabled or readonly attribute of a CCK field Here's a code snippet that you can use to set the disabled attribute of a CCK field. First, you need to create a small module containing the following code: /** * @file * Custom module to set the disabled attribute of CCK fields. */ /** * Implementation of hook_form_alter(). */ function mysnippet_form_alter(&$form, $form_st