diff options
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( |