diff options
author | Carlo Landmeter <clandmeter@gmail.com> | 2013-05-10 17:42:33 +0200 |
---|---|---|
committer | Carlo Landmeter <clandmeter@gmail.com> | 2013-05-10 17:42:33 +0200 |
commit | 1e3e4e23ebfe473571051428480b8b8f03f1ab88 (patch) | |
tree | 421dabfdc450ac7045655f7e68e02d42a3230256 /apk_browser.module | |
parent | f71b98097013d61996d292c0713cccbecd0dcc96 (diff) | |
download | apk_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.module | 7 |
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( |