From 1e3e4e23ebfe473571051428480b8b8f03f1ab88 Mon Sep 17 00:00:00 2001 From: Carlo Landmeter Date: Fri, 10 May 2013 17:42:33 +0200 Subject: remove node_submit we do not want to change the uid --- apk_browser.module | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/apk_browser.module b/apk_browser.module index 5ceb281..5568016 100644 --- a/apk_browser.module +++ b/apk_browser.module @@ -382,7 +382,12 @@ function apk_browser_add_apk($package, $arch_tid, $repo_tid) { $node->taxonomy_apk_repo['und'][0]['tid'] = $repo_tid; $node->taxonomy_apk_arch['und'][0]['tid'] = $arch_tid; $node->language = 'und'; - $node = node_submit($node); + /* + * taken from node_submit + * we dont want the uid change + */ + $node->created = !empty($node->date) ? strtotime($node->date) : REQUEST_TIME; + $node->validated = TRUE; node_save($node); //create a human path based on repo and arch $alias = array( -- cgit v1.2.3