[drupal-support] Locking comment subject to the node title
Bèr Kessels
berdrupal at tiscali.be
Sat Sep 10 12:47:34 UTC 2005
Op zaterdag 10 september 2005 13:18, schreef Abalieno:
> $form .= form_textfield(t('Subject'), 'subject', $edit['subject'] ?
> $edit['subject'] : 'Re: '. $node->title, 60, 64);
This should be
$form .= form_textfield(t('Subject'), 'subject', $edit['subject'] ?
$edit['subject'] : t('Re: '). $node->title, 60, 64);
And AFAIK there is a 'nid' ni the comment oject
A node_load() with that nid will give you the parent node object.
Regards,
Bèr
--
[ Bèr Kessels | Drupal services www.webschuur.com ]
More information about the drupal-support
mailing list