[development] The state of import export

Simon Hobbs emspace.com.au at gmail.com
Tue Jan 29 22:42:04 UTC 2008


On Jan 29, 2008 11:45 AM, Roman Chyla <roman.chyla at gmail.com> wrote:

> however, would it be possible with Drupal to do something like this?
>
> $new = get_new_node('article');
> $new->add('title', 'Hello world');
> $new->add('userid', 1);
> $new->commit;
>
> basically, the new import function would only have to construct the
> node object and submit it to Drupal

Hi Roman

There would be nothing to prevent any examples in this thread being
made into a class with methods like 'add' and 'commit'. The challenge
is having working code inside the black box.

Simon


More information about the development mailing list