summaryrefslogtreecommitdiffstats
path: root/apk_browser.module
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@gmail.com>2013-05-10 17:42:33 +0200
committerCarlo Landmeter <clandmeter@gmail.com>2013-05-10 17:42:33 +0200
commit1e3e4e23ebfe473571051428480b8b8f03f1ab88 (patch)
tree421dabfdc450ac7045655f7e68e02d42a3230256 /apk_browser.module
parentf71b98097013d61996d292c0713cccbecd0dcc96 (diff)
downloadapk_browser-1e3e4e23ebfe473571051428480b8b8f03f1ab88.tar.bz2
apk_browser-1e3e4e23ebfe473571051428480b8b8f03f1ab88.tar.xz
remove node_submit
we do not want to change the uid
Diffstat (limited to 'apk_browser.module')
-rw-r--r--apk_browser.module7
1 files changed, 6 insertions, 1 deletions
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(