Drupal 5.10
cck 1.7

tried this:


function hook_form_alter($form_id, &$form) {
$form['field_re_article']['nids']['#type']='hidden';
}

returns error: 'This post can't be referenced.'

Comments

Michael Hofmockel’s picture

trying again I now get this error

warning: preg_match() expects parameter 2 to be string, array given in /Applications/MAMP/htdocs/acorda/drupal/includes/bootstrap.inc on line 670.

kenorb’s picture

subscribing

ro-no-lo’s picture

Your answer is probably http://drupal.org/node/336355 there.

If not try #access = FALSE;

karens’s picture

Status: Active » Closed (won't fix)

Closing old issues. None of us is using the D5 version any more, so hard to provide any support. Sorry.