Should be...

function _imagefield_import_create_node()

+$global user;
+$node->uid = $user->uid;
+$node->name = $user->name;

CommentFileSizeAuthor
#1 ii_node_owner.patch720 bytesvordude

Comments

vordude’s picture

Status: Active » Needs review
StatusFileSize
new720 bytes

Good call,

Here's a patch that does what you said.

--Works for me.

jumpfightgo@groups.drupal.org’s picture

Works for me too, though take notice that the original post has a typo (that's not in the patch fortunately):

the "$" goes in front of user, not global, in the first line "+$global user;"

mitchell’s picture

bump

I found this issue while searching to see if there was an issue about making a user interface other than the admin interface for importing images.

@vordude: would you like me to put in a separate feature request for creating a page for normal users to use?

messenger’s picture

This works for me, so far.

vordude’s picture

Status: Needs review » Fixed

Included in latest commit, release forthcoming. Thanks!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.