You are here

function filedepot_update in filedepot 7

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

Implementation of hook_update().

File

./filedepot.module, line 1054
filedepot.module Filedepot: File Management Module developed by Nextide www.nextide.ca Full featured document managment module with a desktop application feel. Integrated Organic Group, Role and User permissions to secure folders, automated…

Code

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