You are here

function filedepot_update in filedepot 6

Same name and namespace in other branches
  1. 7 filedepot.module \filedepot_update()

Implementation of hook_update().

File

./filedepot.module, line 614
filedepot.module Filedepot: File Management Module developed by Nextide www.nextide.ca Full featured document managment module with a desktop application feel. Integrated role and user permissions to secure folders, automated notifications, Tag Cloud…

Code

function filedepot_update($node) {
  db_query("UPDATE {node} set promote = 0 WHERE nid = %d", $node->nid);
  db_query("UPDATE {filedepot_categories} SET pid=%d,name='%s',description='%s' WHERE nid=%d", $node->parentfolder, $node->title, $node->folderdesc, $node->nid);
}