Fwd: Re: [development] #just_before_validation ?

Earl Dunovant prometheus6 at gmail.com
Sun May 21 11:31:09 UTC 2006


On 5/21/06, Bèr Kessels <ber at webschuur.com> wrote:
>
> > > Then just *before* validation to capture the node content and fill a
> > > title. So that all possible validation hooks can still run, but that
> the
> > > title has a value.
>
> *removing* the title causes validation errors. So nodeapi(submi) is too
> late!
>

In hook_form_alter() try

$form['title']['#type'] = 'value';
$form['title']['#value'] = 'dummy value';
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/development/attachments/20060521/591b3779/attachment.htm


More information about the development mailing list